Repository navigation
fix(vig-utils): fail loud on unscored CVEs in vulnix gate - #765
Merged
c-vigo merged 3 commits intoJun 30, 2026
Merged
Conversation
This was referenced Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes M2 from the PR #670 review:
vulnix-gatesilently skipped unscored CVEs and the nightly scan swallowed scanner crashes with|| true, so an unscored CRITICAL or a crashed scanner looked identical to a clean result.Changes
vulnix_gate.py—blocking_findingsnow blocks a CVE with no CVSS v3 base score (score is None); only sub-threshold scored CVEs remain awareness-only.main()sorts unscored findings first (unknown severity = most urgent) and labels themunscoredin the GitHub error annotations. An explicit non-expired.vulnixignoreexception still covers an unscored CVE..github/workflows/security-scan.yml— dropped the blanket|| trueon the vulnix scan/report capture. It now tolerates only vulnix's scan-ran exit codes (<= 2:0clean,1whitelisted-only,2reportable advisories — the gate decides pass/fail) and fails the job on any higher code (3usage error,127not-found,137OOM-kill, etc.), so a scanner crash can no longer masquerade as an empty, clean scan.CHANGELOG.md— Security entry.Test evidence (TDD: RED -> GREEN)
RED (after writing the new specs, before the fix):
GREEN (after the fix):
New/updated tests assert an unscored CVE blocks (
blocking_findingsand themainCLI exit code), that a sub-threshold scored CVE still does not block, and that a non-expired exception still covers an unscored CVE.just precommit: all hooks pass.Closes #755