Repository navigation
ci(release): let a reviewer approve a release they tagged - #13706
Merged
Merged
Conversation
The final-release jobs required their environments to prevent self-review, so the person who pushed a final tag couldn't approve its security review or publication. With three reviewers, that would often leave one or two people able to approve. The jobs still require reviewers and the v0.1.* tag policy. Signed-off-by: Carlos Villela <[email protected]>
cv
enabled auto-merge (squash)
October 25, 2026 20:47
Contributor
cv
added a commit
that referenced
this pull request
Oct 25, 2026
#13711) ## Failure A final release tag ran two jobs gated by GitHub environment approvals: `security`, which assessed the release and reported findings, and `publish-security-reviewed`, which published the draft when `V1_SECURITY_PUBLICATION_ENABLED` was set. Anyone with write access may push a release tag, and that's intended. The approvals restricted releasing to the environments' reviewers, and they didn't decide anything the assessment doesn't: the policy and its exceptions come from the `v1` controller, and an approval can't add an exception. ## Decision A final tag now runs one `publish` job, with no environment, approval, or repository variable: 1. Recheck that the tag names the staged commit, the commit is on `v1`, and the release is still a draft. 2. Require a release candidate of the same version whose draft lists the same platform manifests for every image. A final release then ships what was tested; images rebuild to the same digests, so tagging the release candidate's commit satisfies it. 3. Assess the staged release with the frozen `v1` controller and its exceptions file, as before. 4. Report High and Critical findings to code scanning, and keep the reports as a workflow artifact. 5. Require a passing result, recheck the registry digests, and publish the draft with its assessment. The second assessment before publication is gone: it guarded the delay an approval introduced. Release candidates are unchanged: they assess report-only and attach the results to the private draft. The docs say to push a final tag only after the release candidate's sign-off, and only after the provenance, SBOM, scanning, and license work. Publishing a draft by hand still bypasses the workflow. The `v1-release-security` and `v1-release-publication` environments are deleted after this merges. This replaces #13706. ## Validation - New test `a_final_release_publishes_only_images_a_release_candidate_staged` runs the candidate check against a fake `gh`. It accepts a matching candidate, including one listed in another order or after a non-matching candidate, and rejects a changed image, a candidate for another version (`v0.1.10-rc1` for `v0.1.1`), no candidate, and a final inventory that isn't the staged one. It also requires that the job has no environment and no variable condition. It and the updated workflow and report tests failed before the change. - The candidate check also passed against the real drafts with the actual `gh`, treating rc8's draft as a final `v0.1.0`: it listed the drafts, downloaded rc8's inventory, and matched it. - `cargo ci` passes, including formatting, which the first push failed. - `actionlint` 1.7.7 reports nothing new; three existing shellcheck notes remain. - `nemoclaw-build fern check` reports 0 errors. The publish job runs only for a final tag, so its first real run will be the first final release. --------- Signed-off-by: Carlos Villela <[email protected]>
gaveezy
added a commit
that referenced
this pull request
Oct 26, 2026
#13703 merged into v1 as squash 279ccb5, so GitHub retargeted this branch to v1 and reported conflicts: the squash repeats the provider change this branch already holds as its own commits. Resolution: the squash's tree equals #13703's final head (25349c6) applied to its parent, so this merge is a three-way merge with 25349c6 as the base. The result differs from v1 by exactly this branch's change (199 files) and from the branch's previous head by exactly the three release-CI commits that v1 gained (#13706, #13711, #13715). Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Failure
The final-release
securityandpublish-security-reviewedjobs check their environments before running and requiredprevent_self_review. The person who pushes a final tag then can't approve its security review or its publication. With three reviewers, that would often leave one or two people able to approve.Decision
Allow self-review. The jobs still require at least one required reviewer and exactly the
v0.1.*tag deployment policy, and still deny the run when the protection can't be read. The step is renamed "Require review and release-tag restrictions", anddocs/contributing/image-assessment.mddrops prevention of self-review from the required configuration.This removes the only two-person check before a final release:
v1doesn't require reviews, so one maintainer can now add an exception, tag, approve, and publish.The environments now exist with cv, ericksoa, and kaofelix as required reviewers, self-review allowed, and the
v0.1.*tag policy; they pass the new check.Validation
protected_review_scripts_deny_missing_reviewers_and_branch_bypassesruns each job's check script against fixture environments. With self-review allowed, it failed against the old script and passes now; missing reviewers, branch policies, extra policies, and unreadable policies are still denied.cargo test -p nemoclaw-buildpasses.actionlint1.7.7 reports nothing new; the SC2034 warning in the SARIF upload step is already onv1.nemoclaw-build fern checkreports 0 errors.