.github: use app token for third-party metadata tests (#356)
Use bot app token for third-party metadata tests. These tests have hit HTTP 403 errors, speculated due to hitting restrictive rate limits. Github app tokens have much higher rate limits.
This commit is contained in:
committed by
GitHub
parent
12b5abca55
commit
d5e3835a60
8
.github/workflows/metadata.yml
vendored
8
.github/workflows/metadata.yml
vendored
@@ -25,7 +25,15 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Bootstrap
|
- name: Bootstrap
|
||||||
run: ./script/bootstrap
|
run: ./script/bootstrap
|
||||||
|
- name: Generate App Token
|
||||||
|
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c # v1.7.0
|
||||||
|
id: app
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.APP_ID }}
|
||||||
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
- name: Update Package Metadata
|
- name: Update Package Metadata
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
|
||||||
run: ./script/metadata
|
run: ./script/metadata
|
||||||
- name: Diff
|
- name: Diff
|
||||||
run: git diff
|
run: git diff
|
||||||
|
|||||||
9
.github/workflows/thirdparty.yml
vendored
9
.github/workflows/thirdparty.yml
vendored
@@ -9,6 +9,7 @@ on:
|
|||||||
- "tests/thirdparty/**"
|
- "tests/thirdparty/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
|
- ".github/workflows/thirdparty.yml"
|
||||||
- "tests/thirdparty/**"
|
- "tests/thirdparty/**"
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -23,6 +24,14 @@ jobs:
|
|||||||
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- name: Generate App Token
|
||||||
|
uses: tibdex/github-app-token@021a2405c7f990db57f5eae5397423dcc554159c # v1.7.0
|
||||||
|
id: app
|
||||||
|
with:
|
||||||
|
app_id: ${{ secrets.APP_ID }}
|
||||||
|
private_key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
- name: Run Third-Party Tests
|
- name: Run Third-Party Tests
|
||||||
working-directory: tests/thirdparty
|
working-directory: tests/thirdparty
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ steps.app.outputs.token }}
|
||||||
run: go test -timeout 15m -args -net -suite suite.json
|
run: go test -timeout 15m -args -net -suite suite.json
|
||||||
|
|||||||
Reference in New Issue
Block a user