Repository navigation
ci(cd): refuse a Release when ref-gate finds a private reference (RIG-10858) - #83
Open
rigel-mintaka wants to merge 1 commit into
Open
rigel-mintaka wants to merge 1 commit into
rigel-mintaka wants to merge 1 commit into
Conversation
Contributor
Author
|
Updating: draft for Matt's choice on RIG-10858 (option B); made ready only if B is chosen. |
…-10858) Run ref-gate in the release job before the release manifest is published to main, before the tag is pushed, and before the GitHub Release is created. A hit fails the release, so no manifest commit lands on main and no tag or Release is created. This is option B from RIG-10858. ref-gate stays advisory in PR CI; CD is the gate that refuses a release. The step mirrors the ref-gate job in ci.yaml: Go 1.27.4, CGO_ENABLED 0, and go -C tools/ref-gate run . --config ref-gate.config.json. The release job's existing checkout (fetch-depth 0) is reused. Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
force-pushed
the
nebula/rig-10858-refuse-a-release-when-ref-gate-finds-a
branch
from
November 23, 2026 15:20
c232941 to
5a0db6c
Compare
Contributor
Author
|
All-clear at 5a0db6c All-clear at 5a0db6c Review rounds (0H/0M/0L):
|
rigel-mintaka
marked this pull request as ready for review
November 23, 2026 15:20
This branch had an error being deployed
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.
What does this do
The release job in
cd.yamlrunsref-gatebefore it publishes the release manifest tomain, before it tags the release commit, and before it creates the GitHub Release. Ifref-gatefinds a private reference, or fails to run, the release job stops and the Release is not published.Why do we need it
The Architect ruled on RIG-11536 (option A, 2026-11-23):
ref-gatestays advisory on nebulamain, and the Release gate stops a leak from shipping. This PR is that Release gate. Without it, a private reference that reachesmaincan also ship in a public Release.Summary
Run ref-gate before publishingto thereleasejob in.github/workflows/cd.yaml, after Go setup and before the artifact download.ref-gatejob inci.yaml: Go 1.27.4,CGO_ENABLED: '0', andgo -C tools/ref-gate run . --config ref-gate.config.json, withGATE_ROOTset to the checkout root.releasestill run. Image tags andsync-outwait onreleasesuccess.Verification
cd.yaml: the gate runs before the manifest commit, the tag push andgh release create.refgate.Mainexits 1 on a finding and 2 on an error; both fail the step.ref-gatejob passes on main e69bc41 (run 45200953658).Risks
A ref-gate false positive or a Go proxy outage blocks a Release until a fix-forward PR. Main has passed ref-gate only since e69bc41; the three releases before it would have been refused. Rollback is a revert of this 5-line step.
Spec-impact: none
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-10858
Co-authored-by: Matt Wilkinson matt@rigel.build