Skip to content

Commit 8d2afaa

Browse files
committed
fix: rename reserved GITHUB_TOKEN secret in reusable workflows
1 parent 456d0c9 commit 8d2afaa

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.github/workflows/prepare-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ permissions:
1212
jobs:
1313
call-prepare:
1414
uses: leoweyr/github-release-workflow/.github/workflows/reusable-prepare-release.yml@develop
15-
secrets: inherit
15+
secrets:
16+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ permissions:
1010
jobs:
1111
call-publish:
1212
uses: leoweyr/github-release-workflow/.github/workflows/reusable-publish-release.yml@develop
13-
secrets: inherit
13+
secrets:
14+
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/reusable-prepare-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ on:
1919
type: string
2020
default: 'github-actions[bot]@users.noreply.github.com'
2121
secrets:
22-
GITHUB_TOKEN:
22+
ACCESS_TOKEN:
2323
required: true
2424
description: 'GitHub Token for authentication.'
2525

@@ -56,7 +56,7 @@ jobs:
5656
- name: Generate Changelog Content for PR Body
5757
env:
5858
GITHUB_REPO: ${{ github.repository }}
59-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
6060
run: |
6161
npx git-cliff --config .change-log-config/cliff.toml --verbose --latest --strip all > pr_body_raw.md
6262
@@ -67,7 +67,7 @@ jobs:
6767
- name: Update CHANGELOG.md File
6868
env:
6969
GITHUB_REPO: ${{ github.repository }}
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
7171
run: |
7272
if [ -f "CHANGELOG.md" ]; then
7373
# File exists: Prepend new changes (git-cliff intelligently handles headers).
@@ -85,7 +85,7 @@ jobs:
8585
8686
- name: Create Pull Request
8787
env:
88-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
8989
run: |
9090
gh pr create \
9191
--title "release: ${{ env.TAG_NAME }}" \

.github/workflows/reusable-publish-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Release
33
on:
44
workflow_call:
55
secrets:
6-
GITHUB_TOKEN:
6+
ACCESS_TOKEN:
77
required: true
88

99
jobs:
@@ -33,7 +33,7 @@ jobs:
3333

3434
- name: Create GitHub Release
3535
env:
36-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
GH_TOKEN: ${{ secrets.ACCESS_TOKEN }}
3737
run: |
3838
gh release create ${{ env.TAG_NAME }} \
3939
--title "${{ env.VERSION_TITLE }}" \

0 commit comments

Comments
 (0)