Skip to content

ci(release): publish a final release once it passes the release policy - #13711

Merged
cv merged 3 commits into
v1from
ci/release-publish-on-passing-gate
Oct 25, 2026
Merged

cv merged 3 commits into
v1from
ci/release-publish-on-passing-gate

Conversation

@cv

@cv cv commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Anyone who may push a final tag may release, so the reviewer approvals
before the security assessment and before publication guarded nothing the
assessment doesn't decide. A final tag now stages, requires a release
candidate of the same version that staged the same images, assesses,
reports findings, rechecks the registry digests, and publishes the draft
when the assessment passes. Release candidates are unchanged.

Signed-off-by: Carlos Villela <[email protected]>
@cv
cv enabled auto-merge (squash) October 25, 2026 22:33
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 85c2930 into v1 Oct 25, 2026
52 checks passed
@cv
cv deleted the ci/release-publish-on-passing-gate branch October 25, 2026 23:12
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 area: packaging Packages, images, registries, installers, or distribution 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: packaging Packages, images, registries, installers, or distribution 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