Skip to content

[BUG] Nightly security scan fails silently when a step before the vulnix gate fails #1548

Closed

Description

@c-vigo

Description

security-scan.yml opens a deduplicated tracking issue when the nightly scan
goes red (#965, #1237) — but the step is guarded on the gate step's outcome:

# .github/workflows/security-scan.yml:235
if: ${{ failure() && steps.vulnix-gate.outcome == 'failure' }}

Any failure before vulnix-gate leaves steps.vulnix-gate.outcome empty
(the step never ran), so the guard is false and the run dies silently — a
red run in Actions and nothing else. Scheduled runs execute from the default
branch with no other signal, which is the exact reason #965 restored the issue
in the first place.

Evidence

This morning's run
(32335643087,
2026-08-20 05:27 UTC) failed on both lanes at the first step, Validate .vulnixignore exception expirations (expired fzf block, #1547). Open a tracking issue when the vulnix gate fails shows as skipped in both jobs,
and no security-scan issue exists. The failure surfaced only because a human
went looking at the workflow list.

The blind window is every step ahead of the gate: the expiration validation, the
NVD cache restore, the closure build, the vulnix run itself, SBOM generation.
An expired register is the most likely of these — it is a scheduled, dated
event the grid deliberately creates (#1337).

Expected Behavior

Any job failure in the nightly scan surfaces as a deduplicated tracking issue,
with the body distinguishing a gate failure (unexcepted HIGH/CRITICAL
findings) from a pre-gate failure (register expired, scan/infra crash) so
the issue is actionable without opening the run.

Actual Behavior

Only a vulnix-gate failure opens an issue; everything upstream of it is
silent.

Notes

Activity

  1. added this to the 1.11.0 milestone on Aug 20, 2026
  2. added
    bug
    priority:medium
    area:ci
    effort:small
    semver:patch
    security
    on Aug 20, 2026
  3. c-vigo commented on Aug 20, 2026

    @c-vigo
    ContributorAuthor

    Fixed on dev in #1550 (merge fe593bbd).

    The guard is now failure() alone, so the whole job is in scope — register validation, NVD cache, closure build, the vulnix run, SBOM generation. Two dedup titles keep the classes independent per ref: a red gate keeps its exact existing title (issues already open under it still match), and a pre-gate failure files run failed before the vulnix gate, states that the closure went unscanned, not clean, and names the failing step from the run's own job records (actions: read).

    Verified beyond YAML shape — the run: block was extracted and executed against a gh stub: the gate case reproduces the current title and body; the pre-gate case names the dev leg's failing step while the same payload carried a different failing step on the main leg; an already-open issue short-circuits before create.

    Left out of scope deliberately: auto-closing the tracking issue on a later green run. Both classes are still closed by hand, as before.

    Note the live check is tonight's 05:00 UTC main lane — it still carries the expired register (#1547 fixed only dev) but not this fix, so it will fail exactly as it did this morning, silently. The first real exercise of this path is whichever lane fails once 1.11.0 promotes.

  4. added a commit that references this issue on Aug 20, 2026
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

    area:cibugeffort:smallpriority:mediumsecuritysemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions