ci(cli): use CLI_RELEASE_PAT so release-please can create cli-v* tags#358
Merged
Conversation
The cli-release-tags ruleset restricts cli-v* tag creation to the Admin
role, and github-actions[bot] can't be granted a repo-level bypass (org
policy). The default GITHUB_TOKEN therefore fails to publish the release
("Cannot create ref due to creations being restricted"). Switch to the
admin CLI_RELEASE_PAT, which satisfies the existing bypass.
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.
Summary
cli Release Pleaseworkflow failed to cut thecli-v1.12.0release (run #13, commit31371f9) with:cli-release-tagsrepo ruleset restrictsrefs/tags/cli-v*creation to the Admin repository role. The workflow ran release-please with the defaultGITHUB_TOKEN(github-actions[bot]), which isn't an admin — and the GitHub Actions integration can't be added to the repo-level ruleset bypass (org policy rejects it).CLI_RELEASE_PATsecret (an admin PAT), which satisfies the Admin-role bypass already on the ruleset. Also refreshes the stale token-model comment.PR #342 (
chore: release main) is currently merged but stuck atautorelease: pending; the manifest expectscli1.12.0 while the latest tag iscli-v1.11.0.Test plan
cli Release Pleaserun onmainsucceeds and creates thecli-v1.12.0tag + GitHub Release.cli-release.yamlfires on the new tag and publishesgh-teacher/gh-student.autorelease: pendinglabel flips totagged/published.