Skip to content

Commit 4430db5

Browse files
ci(release): use RELEASE_TOKEN for the post-release push to main (#1395)
1 parent 0e567bd commit 4430db5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ jobs:
121121
with:
122122
ref: main
123123
fetch-depth: 0
124-
token: ${{ secrets.GITHUB_TOKEN }}
124+
# RELEASE_TOKEN (PAT) is required because main is protected — rules
125+
# forbid direct pushes and require FOSSA to pass. The default
126+
# GITHUB_TOKEN cannot bypass those rules. RELEASE_TOKEN is the same
127+
# PAT the CLI's OIL→CLI workflow already uses to push tags into OIL.
128+
token: ${{ secrets.RELEASE_TOKEN }}
125129

126130
- name: Commit release marker to main
127131
env:

0 commit comments

Comments
 (0)