Skip to content

Explain why the stable channel cannot advance when a release changes workflow files - #141

Merged
QuintinBotes merged 1 commit into
mainfrom
fix/stable-advance-workflow-files
Nov 24, 2026
Merged

QuintinBotes merged 1 commit into
mainfrom
fix/stable-advance-workflow-files

Conversation

@QuintinBotes

Copy link
Copy Markdown
Owner

Problem

The Advance the stable channel step failed on v0.4.0 (run 45388137792) with HTTP 403 "Resource not accessible by integration". GITHUB_TOKEN has no workflows permission, 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

  • Before the PATCH, compare .github/workflows between the current stable commit and the tag commit. If it differs, skip the API call and fail with an ::error:: that says why and prints git push git@github.com:QuintinBotes/unknot.git <tag-sha>:refs/heads/stable.
  • Any other HTTP 403 from the PATCH prints the same command.
  • docs/release.md and the changelog say so.
  • New workflow test pins the check, the ordering before the API call, the command and the 403 branch. It fails on current main.

Testing

  • npm test under the lock: 3665 tests, 3655 pass, 9 skipped, 1 fail. The failure is requireHumanTTY: no terminal... in tests/unit/cli/human-cli.test.mjs, which also fails on unmodified main here (no terminal in this environment).
  • The new test fails with the old release.yml and passes with the new one.
  • The step itself only runs on a release tag, so it was not run end to end.

🤖 Generated with Claude Code

…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>
@QuintinBotes
QuintinBotes merged commit d09c9f0 into main Nov 24, 2026
12 checks passed
@QuintinBotes
QuintinBotes deleted the fix/stable-advance-workflow-files branch November 24, 2026 12:25
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