Skip to content

Commit

Permalink
chore: change default token in checkout action (#1151)
Browse files Browse the repository at this point in the history
/kind chore
/area ci

token value in actions/checkout action defaults to `github.token`. Even if I set GITHUB_TOKEN env, it will use default github actions account to interact with repo using git. Use custom token.
  • Loading branch information
Ressetkk authored Nov 26, 2024
1 parent ede044e commit 52edb6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/update-sec-scanner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GOAT_BOT_REPO_ACCESS }}
- name: get latest tag
id: latest-sha
env:
Expand Down

0 comments on commit 52edb6e

Please sign in to comment.