|
47 | 47 | statusCommentIdentifier: "integration-test-status-comment" |
48 | 48 | pythonVersion: '3.7' |
49 | 49 | artifactRetentionDays: 2 |
| 50 | + GITHUB_TOKEN: ${{ github.token }} |
50 | 51 |
|
51 | 52 | jobs: |
52 | 53 | check_and_prepare: |
|
69 | 70 | uses: lannonbr/repo-permission-check-action@2.0.0 |
70 | 71 | with: |
71 | 72 | permission: "admin" |
72 | | - env: |
73 | | - GITHUB_TOKEN: ${{ github.token }} |
74 | 73 | ### It sets "github_ref,trigger,pr_number,requested_tests" outputs to control the following jobs and steps |
75 | 74 | ### trigger value: manual_trigger, scheduled_trigger, label_trigger, postsubmit_trigger |
76 | 75 | - id: set_outputs |
@@ -213,6 +212,12 @@ jobs: |
213 | 212 | with: |
214 | 213 | ref: ${{needs.check_and_prepare.outputs.github_ref}} |
215 | 214 | submodules: true |
| 215 | + - name: Store git credentials for all git commands |
| 216 | + # Forces all git commands to use authenticated https, to prevent throttling. |
| 217 | + shell: bash |
| 218 | + run: | |
| 219 | + git config --global credential.helper 'store --file /tmp/git-credentials' |
| 220 | + echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials |
216 | 221 | - name: Set env vars (Linux) |
217 | 222 | if: startsWith(matrix.os, 'ubuntu') |
218 | 223 | run: echo "VCPKG_TRIPLET=x64-linux" >> $GITHUB_ENV |
@@ -386,6 +391,12 @@ jobs: |
386 | 391 | with: |
387 | 392 | ref: ${{needs.check_and_prepare.outputs.github_ref}} |
388 | 393 | submodules: true |
| 394 | + - name: Store git credentials for all git commands |
| 395 | + # Forces all git commands to use authenticated https, to prevent throttling. |
| 396 | + shell: bash |
| 397 | + run: | |
| 398 | + git config --global credential.helper 'store --file /tmp/git-credentials' |
| 399 | + echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials |
389 | 400 | - name: Add msbuild to PATH (Windows) |
390 | 401 | if: startsWith(matrix.os, 'windows') |
391 | 402 | uses: microsoft/setup-msbuild@v1.0.2 |
@@ -501,6 +512,12 @@ jobs: |
501 | 512 | with: |
502 | 513 | ref: ${{needs.check_and_prepare.outputs.github_ref}} |
503 | 514 | submodules: true |
| 515 | + - name: Store git credentials for all git commands |
| 516 | + # Forces all git commands to use authenticated https, to prevent throttling. |
| 517 | + shell: bash |
| 518 | + run: | |
| 519 | + git config --global credential.helper 'store --file /tmp/git-credentials' |
| 520 | + echo 'https://${{ github.token }}@github.com' > /tmp/git-credentials |
504 | 521 | - name: Setup python |
505 | 522 | uses: actions/setup-python@v2 |
506 | 523 | with: |
|
0 commit comments