Skip to content

Commit 89959bb

Browse files
committed
cherry-pick: persist-credentials false so LGTM token is used on push
actions/checkout defaults to persist-credentials: true, which leaves an http.extraheader with the workflow's GITHUB_TOKEN in git config. That overrides the LGTM token in the URL set by `git remote set-url`, so `git push` fails with "Permission denied to github-actions[bot]" when pushing the cherry-pick branch.
1 parent 9012968 commit 89959bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/cherry-pick.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
1414
with:
1515
fetch-depth: 0
16+
persist-credentials: false
1617

1718
- name: Generate LGTM App token
1819
id: lgtm-app-token

0 commit comments

Comments
 (0)