Skip to content

Commit f9deac1

Browse files
abueideclaude
andauthored
fix(ci): use github.token instead of GH_TOKEN PAT for releases (#1139)
The GH_TOKEN secret was missing/expired, causing beta release checkout to fail. The default github.token has sufficient permissions with the contents:write, issues:write, and pull-requests:write already declared in the workflow. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8a2fb86 commit f9deac1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v4
4545
with:
4646
fetch-depth: 0
47-
token: ${{ inputs.type != 'dry-run' && secrets.GH_TOKEN || github.token }}
47+
token: ${{ github.token }}
4848

4949
- name: Point beta branch at current commit
5050
if: inputs.type == 'beta'
@@ -68,13 +68,13 @@ jobs:
6868
if: inputs.type == 'beta'
6969
run: devbox run --config=shells/devbox-fast.json release
7070
env:
71-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
71+
GH_TOKEN: ${{ github.token }}
7272

7373
- name: Release (production)
7474
if: inputs.type == 'production'
7575
run: devbox run --config=shells/devbox-fast.json release
7676
env:
77-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
77+
GH_TOKEN: ${{ github.token }}
7878

7979
- name: Update Apps
8080
if: inputs.type == 'production'

0 commit comments

Comments
 (0)