Skip to content

ci(release): gate publish on a hard vulnix CVE check - #769

Merged
c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
bugfix/753-vulnix-gate-on-publish
Jun 30, 2026
Merged

c-vigo merged 1 commit into
feature/625-nix-claude-migrationfrom
bugfix/753-vulnix-gate-on-publish

Conversation

@c-vigo

@c-vigo c-vigo commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #753. Refs #639.

Wires a hard vulnix CVE gate onto the release publish path (PR #670 review comment B2). Previously vulnix-gate lived only in the nightly security-scan.yml; the publish job in release.yml had no link to it, so the only CVE gate on the publish path was the per-arch Trivy step — which the repo documents as "largely dark" on a Nix image. A HIGH/CRITICAL CVE that nightly vulnix would have blocked could still ship in a release.

Changes (.github/workflows/release.yml only)

  • New vulnix-gate job (needs: [validate, finalize]): provisions the Nix flake + uv via the existing ./.github/actions/setup-env (provision-via-flake) — the same provisioning build-and-test uses — checks out the finalized release commit, builds the image package closure (.#devcontainerImageEnv), runs vulnix, and reuses vig_utils.vulnix_gate (uv run vulnix-gate … --register .vulnixignore) plus check-expirations — the identical gate logic the nightly security-scan runs (no logic duplication). The vulnix run mirrors security-scan.yml:84-90 exit-code handling.
  • publish now needs: [validate, finalize, build-and-test, vulnix-gate] — publish cannot run unless the gate passed.
  • rollback extended to include vulnix-gate in needs:, its failure condition, and the failed-jobs report — so a gate failure after finalize committed the changelog finalization still triggers the branch rollback (consistent with build-and-test).

security-scan.yml was not touched (owned by #755).

Job-graph edges added

+  vulnix-gate:  needs: [validate, finalize]
   publish:      needs: [validate, finalize, build-and-test] -> [validate, finalize, build-and-test, vulnix-gate]
   rollback:     needs: [..., publish]  -> [..., vulnix-gate, publish]
                 if: (... build-and-test.result == 'failure' || publish.result == 'failure')
                  -> (... build-and-test.result == 'failure' || vulnix-gate.result == 'failure' || publish.result == 'failure')

Verification

  • TDD skipped: workflow YAML is not unit-testable (noted per repo rules).
  • actionlint .github/workflows/release.yml — no workflow errors (the shellcheck SC2086/SC2129 info/style notes are all pre-existing in the validate job, none in the added job).
  • yamllint .github/workflows/release.yml — clean (exit 0).
  • pre-commit run on the changed files — all hooks pass, including yamllint, check-yaml, check-action-pins (checkout SHA-pinned), sync-manifest (both CHANGELOG copies identical), pymarkdown, and check agent identity.

Changelog

Added an ## Unreleased → Security entry, mirrored identically into assets/workspace/.devcontainer/CHANGELOG.md (sync-manifest verified).

Add a vulnix-gate job to the release workflow that the publish job
needs:, so a release can no longer ship an image with an unexcepted
HIGH/CRITICAL CVE that nightly vulnix would have blocked. The job
reuses the same vulnix-gate / .vulnixignore check as the nightly
security-scan, built from the finalized release commit's image
closure. Wired into the rollback trigger alongside the other
pre-publish jobs. Workflow YAML is not unit-testable, so TDD is
skipped; validated with actionlint, yamllint, and pre-commit.

Refs: #753
@c-vigo
c-vigo merged commit 2eea6ce into feature/625-nix-claude-migration Jun 30, 2026
10 checks passed
@c-vigo
c-vigo deleted the bugfix/753-vulnix-gate-on-publish branch June 30, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant