-
Notifications
You must be signed in to change notification settings - Fork 124
Add GitHub token to saved credentials to avoid throttling. #727
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
554933a
Add GitHub token to Cocoapods Github URL to avoid throttling.
jonsimantov c3de00e
Use github.token instead of ${GITHUB_TOKEN}; fix URL.
jonsimantov eaf479a
Only temporarily modify the repo URL to include the token.
jonsimantov 82e06c5
Initially add the cocoapods repo with the token
jonsimantov 28f7b20
Change flow slightly
jonsimantov 0adc262
Fix integration test
jonsimantov bd8ecb4
Fix
jonsimantov efd6709
Merge branch 'main' into feature/add-token-to-pod-repo
jonsimantov 0844823
Remove pod repo list command.
jonsimantov d529fdc
Move C++ packaging step to the right place.
jonsimantov 91b0501
Add GITHUB_TOKEN env var to other workflows.
jonsimantov 5829029
For debugging, check the git credentials
jonsimantov 4bc4a50
Reorder
jonsimantov abb9dd0
Fix debug output
jonsimantov 1df837a
Try using git-credentials
jonsimantov c468b2f
Try bad token for debugging
jonsimantov bddf4fb
Try new path to credentials
jonsimantov 66a2402
More config debugging
jonsimantov 4d94859
Fix script
jonsimantov 24c2dbd
Try home path
jonsimantov 72be028
Remove bad token
jonsimantov 0fa2e61
Try using git credential-helper instead
jonsimantov 3031619
Check that config was set
jonsimantov 74b2c32
Set git credential token instead of manually changing pod source.
jonsimantov eeffc52
Fix temp directory
jonsimantov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,7 @@ env: | |
statusCommentIdentifier: "integration-test-status-comment" | ||
pythonVersion: '3.7' | ||
artifactRetentionDays: 2 | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
jobs: | ||
check_and_prepare: | ||
|
@@ -69,8 +70,6 @@ jobs: | |
uses: lannonbr/[email protected] | ||
with: | ||
permission: "admin" | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
### It sets "github_ref,trigger,pr_number,requested_tests" outputs to control the following jobs and steps | ||
### trigger value: manual_trigger, scheduled_trigger, label_trigger, postsubmit_trigger | ||
- id: set_outputs | ||
|
@@ -213,6 +212,12 @@ jobs: | |
with: | ||
ref: ${{needs.check_and_prepare.outputs.github_ref}} | ||
submodules: true | ||
- name: Store git credentials for all git commands | ||
# Forces all git commands to use authenticated https, to prevent throttling. | ||
shell: bash | ||
run: | | ||
git config --global credential.helper 'store --file /tmp/git-credentials' | ||
echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials | ||
- name: Set env vars (Linux) | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: echo "VCPKG_TRIPLET=x64-linux" >> $GITHUB_ENV | ||
|
@@ -386,6 +391,12 @@ jobs: | |
with: | ||
ref: ${{needs.check_and_prepare.outputs.github_ref}} | ||
submodules: true | ||
- name: Store git credentials for all git commands | ||
# Forces all git commands to use authenticated https, to prevent throttling. | ||
shell: bash | ||
run: | | ||
git config --global credential.helper 'store --file /tmp/git-credentials' | ||
echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials | ||
- name: Add msbuild to PATH (Windows) | ||
if: startsWith(matrix.os, 'windows') | ||
uses: microsoft/[email protected] | ||
|
@@ -501,6 +512,12 @@ jobs: | |
with: | ||
ref: ${{needs.check_and_prepare.outputs.github_ref}} | ||
submodules: true | ||
- name: Store git credentials for all git commands | ||
# Forces all git commands to use authenticated https, to prevent throttling. | ||
shell: bash | ||
run: | | ||
git config --global credential.helper 'store --file /tmp/git-credentials' | ||
echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.