Repository navigation
fix(runner): push the attested SHA; reuse/open the PR in the pushed remote (0.3.2) - #20
Merged
Merged
Conversation
…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"}
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.
Why
Found while rolling ci.yml GATE-014 out to FastLED/cli (#295, flagged by CodeRabbit).
./pushcannot fix either problem itself, because GATE-014 forbids it from pushing or creating PRs.What
--pushused to pushHEAD: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.gh pr view/createused to resolve the repository fromGH_REPOor gh's default remote. Both now pass--repo, derived fromgit remote get-url <remote>; this covers github.com and enterprise hosts. A remote that isn't a URL keeps gh's default.Validation
Published with prooft's own
./push --test: lint attested, 143 tests passed, and the runner printedpushed c4ccd6c909e3(the attested SHA). The new tests cover SHA pinning, refusing when HEAD's bytes moved, and remote URL parsing.