Skip to content

Commit 2b321b2

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 d83b777 commit 2b321b2

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)