Skip to content

ci(release): let a reviewer approve a release they tagged - #13706

Merged
cv merged 1 commit into
v1from
ci/release-review-without-self-review-ban
Oct 25, 2026
Merged

cv merged 1 commit into
v1from
ci/release-review-without-self-review-ban

Conversation

@cv

@cv cv commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator

Failure

The final-release security and publish-security-reviewed jobs check their environments before running and required prevent_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", and docs/contributing/image-assessment.md drops prevention of self-review from the required configuration.

This removes the only two-person check before a final release: v1 doesn'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_bypasses runs 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-build passes.
  • actionlint 1.7.7 reports nothing new; the SC2034 warning in the SARIF upload step is already on v1.
  • nemoclaw-build fern check reports 0 errors.

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
cv enabled auto-merge (squash) October 25, 2026 20:47
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit e7c276d into v1 Oct 25, 2026
54 checks passed
@cv
cv deleted the ci/release-review-without-self-review-ban branch October 25, 2026 21:00
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]>
@wscurran wscurran added v1 NemoClaw v1 branch area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance security area: security Security controls, permissions, secrets, or hardening and removed security labels Oct 27, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, checks, release automation, or GitHub Actions area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants