fix(ship): make certified-revert pushes user-authenticated via SHIP_RECOVERY_TOKEN - #170
Merged
Merged
Conversation
…ECOVERY_TOKEN A GITHUB_TOKEN push cannot trigger the push-event ci runs that branch protection recognises, so bot-created ship/revert-* branches left every required context stuck at 'Expected' even after a green dispatched ci run (observed live on PR #168; unblocked manually with a user-authenticated empty commit). When the SHIP_RECOVERY_TOKEN secret (fine-grained PAT, this repo, Contents + Workflows read/write) is configured, the recovery path now pushes the revert branch with it — a user event, so ci starts on push and reports the required contexts exactly like a normal ship branch — and waits on that push-event run. Without the secret the old dispatch path is unchanged, and a stalled recovery merge now files an issue carrying the exact manual unblock and the permanent fix. Co-authored-by: AgentTanuki <AgentTanuki@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VkMDoMT8yVLvkhSJ6eritu
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.
Machine-operated ship branch
ship/harden-rollback-recovery.The ship workflow dispatches the full
cimatrix, waits for it, merges only the certified combined state with main, then runs the deployment-aware release gate against the merged SHA — with automatic certified revert on a red gate. See .github/workflows/ship.yml.