Repository navigation
feat(scan): add --fail-on-epss CI gate - #474
Merged
Merged
Conversation
Exit 2 when a scanned advisory has a present EPSS probability at or above the threshold. An omitted score is not compared and is not treated as 0. The flag replaces failOnEpss in the project config. JUnit records an epss case in the gates suite. Fixes #420 Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Exit 2 when any advisory EPSS score is at or above the threshold. A missing score is not compared and is not treated as 0. The flag replaces failOnEpss in project config. JUnit records a fail-on-epss case. Fixes #420 Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
vibgrate-team
marked this pull request as ready for review
October 19, 2026 05:17
This was referenced Oct 20, 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
vg scan --fail-on-epss <threshold>exits2when any advisory from--vulnsor--fullhas an EPSS score at or above the threshold. The threshold is a probability from 0 to 1. A score equal to the threshold fails.A missing score is not compared, and it is not treated as 0. A present
0is a real score:--fail-on-epss 0fails on it, and--fail-on-epss 0.01does not. The gate reads scores already on the advisories. It does not contact an EPSS service. Offline and--package-manifestscans use the scores in that bundle.When there is no score to compare — vulnerability detection was not requested, the advisory feed could not be reached, or every advisory omitted
epss— the command printsEPSS is absent; --fail-on-epss <threshold> was not compared.and exits0. A vulnerability pass that ran and found no advisories passes.A value that is not a number, or a number outside 0 to 1, stops the command before the scan with exit
1anderror: --fail-on-epss must be a number from 0 to 1.failOnEpssin.vibgrate/config.ymlorvibgrate.config.jsonis the same threshold. Passing--fail-on-epssreplaces it. A config value of the wrong type stops the scan and names the key. The failure line does not include the rejected value.The failure line is
Failing: N advisory/advisories at or above EPSS <threshold>.Matching advisories are listed on stderr.--fail-onruns first, then this gate, then--drift-budgetand--drift-worsening. With--junit, thegatessuite includes afail-on-epsscase: a<failure>on a breach, a<skipped>case when no score was compared, and a passing case when every compared score is below the threshold. The XML is written, then the process exits2.Related issues
Fixes #420
Checklist
pnpm testpassespnpm lintis cleanpnpm typecheckis cleangraph.json/ report output (content-hashed IDs, stable sorts; no time, randomness, or filesystem-order dependence)git commit -s, DCO)Notes for reviewers
Covered by
src/reporting/epss-gate.test.tsandsrc/reporting/commands/scan-epss-gate.test.ts(offline manifest, no network). A bad flag exits1(ERROR) before the scan.