Fix: update gh token#43
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit 52a3bb0. Configure here.
actions/checkout persists the default GITHUB_TOKEN in local git config by default. Setting GITHUB_TOKEN in a later step env block does not override those persisted credentials. Disable persist-credentials on checkout and configure the origin remote with GH_PUBLISH_TOKEN before pushing release commits and tags. Co-authored-by: Vaibhav Jain <vaibhav-jain-exp@users.noreply.github.com>
zhukaihan
previously approved these changes
Jul 24, 2026
Avoid interpolating github context directly in run scripts. Use env vars for VERSION and authenticate via http.extraheader instead of embedding the token in the git remote URL. Co-authored-by: Vaibhav Jain <vaibhav-jain-exp@users.noreply.github.com>
zhukaihan
approved these changes
Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Medium Risk
Changes release automation credentials and git push behavior; a misconfigured or under-scoped GH_PUBLISH_TOKEN could break releases or grant broader repo write access than intended.
Overview
Updates the release workflow so release commits and tags are pushed with a dedicated
GH_PUBLISH_TOKENinstead of the defaultGITHUB_TOKEN.Checkout now sets
persist-credentials: false, and the Commit Release step configures a temporary GitHub HTTPAuthorizationheader fromGH_PUBLISH_TOKENbeforegit push/git push --tags, then removes it. Release commit/tag messaging is driven via aVERSIONenv var (same input as before).Reviewed by Cursor Bugbot for commit 9eff25e. Bugbot is set up for automated code reviews on this repo. Configure here.