Skip to content

Nightly vulnix security scan fails silently — auto-issue creation lost in Nix cutover #965

Closed

Description

@c-vigo

Summary

The Scheduled Security Scan no longer opens a GitHub issue when the nightly gate fails — so a red scan is now silent (only a red run in the Actions tab). This regressed during the Nix cutover.

History / root cause

The Debian :latest Trivy job carried a deduplicated "Create GitHub issue on gate failure" step (issues: write + gh issue create, dedup by the security-scan label). It filed #805, #602, #567, #549, #521, #512.

  • c6368fa0 rewrote the scan; 1d4e9db1 "build(nix): decommission the Debian build path" (2026-06-24) removed the Debian job and its issue-creation step. The replacement scan-nix-image (vulnix) job never got one — an explicit TODO in the code: "SARIF upload + a deduplicated issue (like scan-latest) land with the actual publish-cutover."
  • The current scan-nix-image job has permissions: contents: read only — it cannot open an issue.

Because the schedule runs from the default branch, the removal only bit once it reached main with the 0.5.0 merge (2026-07-09). The 2026-07-10 run (29079456127, CVE-2026-60002, handled in #963) was the first to fail silently — it had to be spotted by hand.

Secondary: the security-scan label description is stale — "...findings for :latest image" — the scan is now the Nix image.

Fix

Restore a deduplicated issue-creation step on the scan-nix-image vulnix gate-failure path (grant issues: write), adapting the old Debian step to vulnix (link the run + the nix-image-cve-scan artifact holding vulnix-findings.json/vulnix-report.txt). Refresh the stale label description.

Targets release/0.5.1 (fixing it there means 0.5.1 ships with working alerting rather than waiting for the next cycle).

Activity

  1. added
    security
    security-scan
    on Jul 10, 2026
  2. c-vigo commented on Jul 10, 2026

    @c-vigo
    ContributorAuthor

    Fixed in #966

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitysecurity-scan

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions