Skip to content

ci: push release tags with the App token - #399

Merged
rdimitrov merged 1 commit into
mainfrom
rdimitrov/fix-release-push
Oct 19, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
rdimitrov/fix-release-push

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

The v0.0.57 retry (run) passed Verify release PR but failed at Create module tags:

remote: Permission to stacklok/toolhive-core.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/stacklok/toolhive-core.git/': The requested URL returned error: 403

actions/checkout stores GITHUB_TOKEN in the git config by default, and git sent it instead of the App token in the push URL. GITHUB_TOKEN is read-only in this workflow. (toolhive-registry-server doesn't hit this because its job grants contents: write.) No tags were pushed.

Change

persist-credentials: false on the checkout in create-release-tag.yml, so the tag push authenticates as the release App. Nothing else in the job uses git authentication after checkout.

After merge

gh workflow run create-release-tag.yml to release v0.0.57 from c024466.

Test plan

  • actionlint clean
  • No tag rulesets on the repo; the App already has write access (it pushed release/v0.0.57)

🤖 Generated with Claude Code

actions/checkout stores GITHUB_TOKEN in the git config by default, and
git used it instead of the App token in the push URL. GITHUB_TOKEN is
read-only in this workflow, so the v0.0.57 tag push failed with 403 for
github-actions[bot]. Disable persist-credentials so the push
authenticates as the release App.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rdimitrov
rdimitrov merged commit ac75f4a into main Oct 19, 2026
6 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov/fix-release-push branch October 19, 2026 21:40
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.

2 participants