File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,19 @@ jobs:
1212 name : ' Bump API Schema SHA'
1313 steps :
141415+ - name : Get auth token
16+ id : token
17+ uses : actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
18+ with :
19+ app-id : ${{ vars.SENTRY_INTERNAL_APP_ID }}
20+ private-key : ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
1521 - name : ' Bump API Schema SHA'
1622 shell : bash
1723 env :
1824 # An elevated token is necessary because with plain github.token
1925 # GitHub does not recursively call workflows, which means CI does not
2026 # kick off for the PR we're about to create.
21- GITHUB_TOKEN : ${{ secrets.GH_RELEASE_PAT }}
27+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
2228 run : |
2329 set -euo pipefail
2430
Original file line number Diff line number Diff line change @@ -13,14 +13,20 @@ jobs:
1313 runs-on : ubuntu-latest
1414 name : " Release a new version"
1515 steps :
16+ - name : Get auth token
17+ id : token
18+ uses : actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
19+ with :
20+ app-id : ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
21+ private-key : ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
16221723 with :
18- token : ${{ secrets.GH_RELEASE_PAT }}
24+ token : ${{ steps.token.outputs.token }}
1925 fetch-depth : 0
2026 - name : Prepare release
2127 uses : getsentry/action-prepare-release@v1
2228 env :
23- GITHUB_TOKEN : ${{ secrets.GH_RELEASE_PAT }}
29+ GITHUB_TOKEN : ${{ steps.token.outputs.token }}
2430 with :
2531 version : ${{ github.event.inputs.version }}
2632 force : ${{ github.event.inputs.force }}
You can’t perform that action at this time.
0 commit comments