Skip to content

Commit 7e1521e

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 cf6d3f5 commit 7e1521e

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)