Skip to content

Commit 2dc83b9

Browse files
ci: add persist-credentials: false to checkout step
actions/checkout@v6 stores credentials using includeIf scoped to the repo and its worktrees. The docs deploy action creates a temporary worktree, causing checkout's GITHUB_TOKEN credentials to override the app token, resulting in a 403 as github-actions[bot]. Setting persist-credentials: false prevents checkout from storing any credentials, so only the deploy action's own app token is used.
1 parent bbb7451 commit 2dc83b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
with:
6363
fetch-tags: true
6464
ref: ${{ env.SHA_TO_RELEASE }}
65+
persist-credentials: false
6566

6667
- name: Download artifact
6768
id: download-artifact

0 commit comments

Comments
 (0)