Skip to content

ci(security): open a tracking issue when the vulnix scan gate fails - #966

Merged
c-vigo merged 1 commit into
release/0.5.1from
bugfix/965-restore-scan-issue-creation
Jul 10, 2026
Merged

c-vigo merged 1 commit into
release/0.5.1from
bugfix/965-restore-scan-issue-creation

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

What & why

Restores the deduplicated auto-issue on scan failure that was lost in the Debian→Nix cutover (1d4e9db1), so a red nightly vulnix gate surfaces as a GitHub issue rather than a silent red run. Full root-cause history in #965.

The trigger case was 2026-07-10 (run 29079456127, CVE-2026-60002, fixed in #963/#964) — the first gate failure to reach main post-0.5.0 with no issue-creation step, so it had to be caught by hand.

Change (single file: .github/workflows/security-scan.yml)

  • Grant the scan-nix-image job issues: write.
  • New step "Open a tracking issue when the vulnix gate fails", gated on failure() && steps.vulnix-gate.outcome == 'failure' (so infra/scan crashes don't file a "findings" issue).
  • Adapted from the old Debian step, with two improvements:
  • Body links the run + the nix-image-cve-scan artifact (vulnix-findings.json/vulnix-report.txt) and gives the remediate path (advance the pin or add a time-boxed .vulnixignore exception).
  • Updated two stale doc comments (header "On failure" note; the old "can be added alongside the publish-cutover" TODO).

Verification

  • Full pre-commit suite green (yamllint, check-action-pins — no new pinned action, gh CLI only).
  • Embedded run: script shellcheck-clean and dry-run rendered: search arg "Nightly security scan: …" in:title and the heredoc body (backticks literal, $(date)/${RUN_URL} expanded) both correct.

Not changelog-tracked (ci scope, maintainer-facing CI infra). Targets release/0.5.1 so 0.5.1 ships with working alerting.

Refs: #965

@c-vigo
c-vigo enabled auto-merge July 10, 2026 09:21
@c-vigo
c-vigo merged commit 7342bf4 into release/0.5.1 Jul 10, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/965-restore-scan-issue-creation branch July 10, 2026 09:24
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