Repository navigation
Explain why the stable channel cannot advance when a release changes workflow files - #141
Merged
Merged
Conversation
…workflow files GITHUB_TOKEN has no workflows permission, so moving stable onto a commit that changes .github/workflows fails with a bare 403 (v0.4.0, run 45388137792). Check the workflow diff against stable first, and on that case or any 403 fail with an error annotation that prints the owner's command. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The
Advance the stable channelstep failed on v0.4.0 (run 45388137792) with HTTP 403 "Resource not accessible by integration".GITHUB_TOKENhas noworkflowspermission, so it cannot move a ref onto a commit that changes.github/workflows/files relative to the ref's current commit, and v0.3.3 to v0.4.0 changed four workflow files. The release and assets published fine.Change
.github/workflowsbetween the currentstablecommit and the tag commit. If it differs, skip the API call and fail with an::error::that says why and printsgit push git@github.com:QuintinBotes/unknot.git <tag-sha>:refs/heads/stable.docs/release.mdand the changelog say so.Testing
npm testunder the lock: 3665 tests, 3655 pass, 9 skipped, 1 fail. The failure isrequireHumanTTY: no terminal...intests/unit/cli/human-cli.test.mjs, which also fails on unmodified main here (no terminal in this environment).release.ymland passes with the new one.🤖 Generated with Claude Code