Skip to content

Commit

Permalink
Use the PAT for pushing changes correctly
Browse files Browse the repository at this point in the history
Using action/checkout with token is broken for our usecase, implemented
a workaround from:

actions/checkout#664 (comment)
  • Loading branch information
simonswine committed Aug 23, 2024
1 parent 7beb779 commit 02c28a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
# these are credentials for https://github.com/pyroscopebot
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Update contributors
run: make update-contributors

- name: Update git credentials
run: git remote set-url origin https://x-access-token:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/${{ github.repository }}

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_user_name: Pyroscope Bot
Expand Down

0 comments on commit 02c28a9

Please sign in to comment.