Skip to content

Commit 64ae2f5

Browse files
committed
Use PAT instead of GITHUB_TOKEN
1 parent 78d2e78 commit 64ae2f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/generate_changelog.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
steps:
1717
- name: Checkout Repository
1818
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false # disable default GITHUB_TOKEN
1921

2022
- name: Install Dependencies
2123
run: pip install -r requirements.txt
@@ -29,8 +31,9 @@ jobs:
2931
- name: Commit and Push Changes
3032
env:
3133
RELEASE_TAG: ${{ inputs.release_tag }}
32-
GITHUB_TOKEN: ${{ secrets.SAGE_ACCESS_TOKEN }}
34+
GITHUB_PAT: ${{ secrets.SAGE_ACCESS_TOKEN }}
3335
run: |
36+
git remote set-url origin https://x-access-token:${GITHUB_PAT}@github.com/${{ github.repository }}.git
3437
git config --global user.name "github-actions[bot]"
3538
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3639
git add "src/changelogs/sage-${RELEASE_TAG}.txt"

0 commit comments

Comments
 (0)