Skip to content

Commit a842391

Browse files
andykenwardclaude
andauthored
ci: changesets release uses github app token (#770)
Route changesets/action through the GitHub App token so the "Version Packages" PR is authored by the App and therefore triggers CI (test, check-dist, zizmor). The default GITHUB_TOKEN cannot trigger downstream workflow runs regardless of its permission scopes. Job permissions are left intact; the App token is scoped to contents and pull-requests writes. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent caaca8f commit a842391

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,17 @@ jobs:
3131
with:
3232
persist-credentials: false
3333
- uses: ./.github/actions/setup-pnpm
34+
- uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 #v3.2.0
35+
id: app-token
36+
with:
37+
client-id: ${{ vars.APP_CLIENT_ID }}
38+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
39+
permission-contents: write # push the version/CHANGELOG commit, tags, and GitHub releases
40+
permission-pull-requests: write # create/update the Version Packages PR
3441
- name: Create Release Pull Request
3542
id: changesets
3643
uses: changesets/action@63a615b9cd06ba9a3e6d13796c7fbcb080a60a0b #v1.8.0
3744
with:
3845
publish: pnpm release
3946
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)