Repository navigation
fix(ci): commit tool bumps through createCommitOnBranch so they are signed - #76
Merged
Merged
Conversation
…igned The weekly bump branch could never merge. main requires signed commits; git commit inside Actions is signed by nobody, because GITHUB_TOKEN is not a signing key. #72 passed all nine checks and was still refused by the base branch policy, and the only way through was --admin. That is not a stuck PR to force once. It is every week the gate goes red, and it trains whoever is on the other end to treat an admin bypass as routine in the repo that guards everything else. createCommitOnBranch signs server-side, so the commit comes back Verified and merges under the rule like any other. Same GITHUB_TOKEN, same contents: write, no bot signing key to store or rotate. Verified on #74, which was the same content as #72 re-landed this way and merged without a bypass. The helper asserts the commit came back VALID and fails if not. Silently producing an unmergeable branch is the failure being fixed here, and it stays invisible until someone tries to merge weeks later. Preserved deliberately: the job still does not open the PR (that needs create AND approve, and GitHub does not split them), persist-credentials stays false so the docker builds cannot find a pushable token, and the single long-lived branch is still force-reset each week rather than leaving a trail.
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.
The weekly bump branch could never merge.
mainrequires signed commits.git commitinside Actions is signed by nobody —GITHUB_TOKENis not a signing key. #72 passed all nine checks and was still refused:the base branch policy prohibits the merge. The only way through was--admin.That is not a stuck PR to force through once. It is every week the drift gate goes red, and it trains whoever is on the other end to treat an admin bypass as routine — in the repo that guards everything else.
The fix
GitHub's GraphQL
createCommitOnBranchmutation signs server-side, so the commit comes backVerifiedand merges under the rule like any other. SameGITHUB_TOKEN, samecontents: write, no bot signing key to store or rotate.Already proven: #74 was #72's content re-landed this way (identical tree
306388c3ba55) and merged with no bypass.Logic lives in
scripts/push-signed-branch.py, alongside the existingcheck-tool-updates.shandapply-tool-bumps.py, rather than as an inline heredoc.It fails loudly
The helper asserts the returned commit is actually
VALIDand exits non-zero otherwise. Silently producing an unmergeable branch is the exact failure being fixed, and it stays invisible until someone tries to merge weeks later.Preserved deliberately
persist-credentials: falsestays, so thedocker buildsteps that run ten third-party installers cannot find a pushable token in.git/config. The comment is updated: the token is now spent on the API rather than a git remote.git push --forcehad, via aPATCHon the ref.bump-summary.mdthe apply step already writes.