Skip to content

Commit 3a06a43

Browse files
committed
use Github App instead of PAT
1 parent 2cf5ba6 commit 3a06a43

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

develop-docs/sdk/processes/releases.mdx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Nice!
8484

8585
This file is used to trigger the release from the GitHub UI.
8686

87-
You'll notice it uses `secrets.GH_RELEASE_PAT` -- this should already be
87+
You'll notice it uses `vars.SENTRY_RELEASE_BOT_CLIENT_ID` and `secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY` -- these should already be
8888
available to your repository automatically!
8989

9090
```yaml
@@ -109,10 +109,16 @@ jobs:
109109
with:
110110
token: ${{ secrets.GH_RELEASE_PAT }}
111111
fetch-depth: 0
112+
- name: Get auth token
113+
id: token
114+
uses: actions/create-github-app-token@3378cda945da322a8db4b193e19d46352ebe2de5 #v.1.10.4
115+
with:
116+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
117+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
112118
- name: Prepare release
113119
uses: getsentry/action-prepare-release@v1
114120
env:
115-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
121+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
116122
with:
117123
version: ${{ github.event.inputs.version }}
118124
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)