Skip to content

Commit 486e197

Browse files
committed
ci(release): Restore GitHub App token authentication
The previous migration incorrectly removed the GitHub App token authentication step. This commit restores it by switching to the composite action pattern which preserves the auth flow.
1 parent ee4e7c7 commit 486e197

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,24 @@ on:
1313
required: false
1414
jobs:
1515
release:
16-
uses: getsentry/craft/.github/workflows/release.yml@v2
17-
with:
18-
version: ${{ inputs.version }}
19-
force: ${{ inputs.force }}
20-
merge_target: ${{ inputs.merge_target }}
21-
secrets: inherit
16+
runs-on: ubuntu-latest
17+
name: Release a new version
18+
steps:
19+
- name: Get auth token
20+
id: token
21+
uses: actions/create-github-app-token@v1
22+
with:
23+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
24+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
25+
- uses: actions/checkout@v4
26+
with:
27+
token: ${{ steps.token.outputs.token }}
28+
fetch-depth: 0
29+
- name: Prepare release
30+
uses: getsentry/craft@v2
31+
env:
32+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
33+
with:
34+
version: ${{ inputs.version }}
35+
force: ${{ inputs.force }}
36+
merge_target: ${{ inputs.merge_target }}

0 commit comments

Comments
 (0)