Skip to content

Commit c05b63a

Browse files
committed
fix: use GH_TOKEN for protected branch push in changelog workflows
Use GH_TOKEN instead of GITHUB_TOKEN to bypass branch protection rules when pushing CHANGELOG updates directly to main branch.
1 parent 8afac0d commit c05b63a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/changelog-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
30-
token: ${{ secrets.GITHUB_TOKEN }}
30+
token: ${{ secrets.GH_TOKEN }}
3131

3232
- name: Install git-cliff
3333
uses: taiki-e/install-action@v2

.github/workflows/changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: actions/checkout@v4
2929
with:
3030
fetch-depth: 0
31-
token: ${{ secrets.GITHUB_TOKEN }}
31+
token: ${{ secrets.GH_TOKEN }}
3232

3333
- name: Install git-cliff
3434
uses: taiki-e/install-action@v2

0 commit comments

Comments
 (0)