Skip to content

fix(runner): push the attested SHA; reuse/open the PR in the pushed remote (0.3.2) - #20

Merged
zackees merged 1 commit into
mainfrom
fix/push-attested-sha
Nov 22, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/push-attested-sha

Conversation

@zackees

@zackees zackees commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Why

Found while rolling ci.yml GATE-014 out to FastLED/cli (#295, flagged by CodeRabbit). ./push cannot fix either problem itself, because GATE-014 forbids it from pushing or creating PRs.

What

  • Push the attested commit. --push used to push HEAD:refs/heads/<branch>. It now pushes <sha>:refs/heads/<branch>, and refuses if HEAD's tree is no longer the tree the lanes ran on.
  • Use the pushed remote's repository. gh pr view/create used to resolve the repository from GH_REPO or gh's default remote. Both now pass --repo, derived from git remote get-url <remote>; this covers github.com and enterprise hosts. A remote that isn't a URL keeps gh's default.
  • Version 0.3.2.

Validation

Published with prooft's own ./push --test: lint attested, 143 tests passed, and the runner printed pushed c4ccd6c909e3 (the attested SHA). The new tests cover SHA pinning, refusing when HEAD's bytes moved, and remote URL parsing.

…emote

Found rolling GATE-014 out to FastLED/cli (#295, CodeRabbit):

- `--push` pushed `HEAD:refs/heads/<branch>`, so anything that moved HEAD
  between the lanes and the push shipped an unattested commit. It now pushes
  `<sha>:refs/heads/<branch>` and refuses if HEAD's tree is no longer the
  tree the lanes ran on.
- `gh pr view`/`create` resolved the repository from GH_REPO or gh's
  default remote, not the remote prooft pushed to. Both now pass
  `--repo` derived from `git remote get-url <remote>` (github.com and
  enterprise hosts; a non-URL remote keeps gh's default).

0.3.2.

Ci-Attestation: {"at":1795328550,"gate":"python/all/fmt","host":"linux-x86_64","key":"e1c84c71b20b118057d87df87e8e8f2ed88b0d3f2b8f9174b4e4680daedf3f4a","lane":"lint","parents":["627df1683e66b857022e1357ad8997a3b97018f8"],"secs":5,"stamp":"6a5d041e52f31820a68209c82d68838d","tree":"052aacef6081d2688de2dd0b9a14f3ce832efd8f","v":1,"via":"run"}
Ci-Attestation: {"at":1795328550,"gate":"python/all/lint","host":"linux-x86_64","key":"e1c84c71b20b118057d87df87e8e8f2ed88b0d3f2b8f9174b4e4680daedf3f4a","lane":"lint","parents":["627df1683e66b857022e1357ad8997a3b97018f8"],"secs":5,"stamp":"9763b7ee255cd668da7f747c265bd2e0","tree":"052aacef6081d2688de2dd0b9a14f3ce832efd8f","v":1,"via":"run"}
Ci-Attestation: {"at":1795328550,"gate":"python/all/types","host":"linux-x86_64","key":"e1c84c71b20b118057d87df87e8e8f2ed88b0d3f2b8f9174b4e4680daedf3f4a","lane":"lint","parents":["627df1683e66b857022e1357ad8997a3b97018f8"],"secs":5,"stamp":"60351cd98a1b685ab7df4bed9f8a988c","tree":"052aacef6081d2688de2dd0b9a14f3ce832efd8f","v":1,"via":"run"}
Ci-Attestation: {"at":1795328627,"gate":"python/linux-x64/test","host":"linux-x86_64","key":"269f80b55b309b7cb9501f2247ccf564d474e5345266f3383a16fa7b224bd968","lane":"tests","parents":["627df1683e66b857022e1357ad8997a3b97018f8"],"secs":76,"stamp":"5cfbaf911f11213c268dbedafe528aad","tree":"052aacef6081d2688de2dd0b9a14f3ce832efd8f","v":1,"via":"run"}
@zackees zackees changed the title fix(runner): push the attested SHA; reuse/open the PR in the pushed remote fix(runner): push the attested SHA; reuse/open the PR in the pushed remote (0.3.2) Nov 22, 2026
@zackees
zackees added this pull request to the merge queue Nov 22, 2026
Merged via the queue into main with commit 3445861 Nov 22, 2026
7 of 12 checks passed
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