Skip to content

Commit 02c28a9

Browse files
committed
Use the PAT for pushing changes correctly
Using action/checkout with token is broken for our usecase, implemented a workaround from: actions/checkout#664 (comment)
1 parent 7beb779 commit 02c28a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-contributors.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13-
with:
14-
# these are credentials for https://github.com/pyroscopebot
15-
token: ${{ secrets.BOT_GITHUB_TOKEN }}
1613
- uses: actions/setup-go@v5
1714
with:
1815
go-version: '1.22'
1916
- name: Update contributors
2017
run: make update-contributors
2118

19+
- name: Update git credentials
20+
run: git remote set-url origin https://x-access-token:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}
21+
2222
- uses: stefanzweifel/git-auto-commit-action@v5
2323
with:
2424
commit_user_name: Pyroscope Bot

0 commit comments

Comments
 (0)