Skip to content

ci: do not persist checkout credentials in release workflow#818

Merged
bartlomieju merged 1 commit into
mainfrom
ci-fix-release-push-credentials
Jun 10, 2026
Merged

ci: do not persist checkout credentials in release workflow#818
bartlomieju merged 1 commit into
mainfrom
ci-fix-release-push-credentials

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

The release workflow failed to push the version bump commit with a 403
denied to github-actions[bot], even though it sets the remote URL to use
DENOBOT_PAT. The cause is that actions/checkout defaults to
persist-credentials: true, which stores the default workflow token as an
http.extraheader in .git/config. That header takes precedence over
credentials embedded in the remote URL, so the push authenticated with
the read-only default token (contents: read) instead of the PAT.

Disabling credential persistence lets the PAT in the remote URL take
effect. Failed run:
https://github.com/denoland/deno_doc/actions/runs/27276557517

@bartlomieju bartlomieju merged commit b09b38e into main Jun 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant