Skip to content

build(ci): refuse a pull request that adds a vulnerable dependency - #92

Merged
bgard68 merged 1 commit into
mainfrom
build/dependency-review
Aug 2, 2026
Merged

build(ci): refuse a pull request that adds a vulnerable dependency#92
bgard68 merged 1 commit into
mainfrom
build/dependency-review

Conversation

@bgard68

@bgard68 bgard68 commented Aug 2, 2026

Copy link
Copy Markdown
Owner

The NuGet and npm audits already fail the build on an advisory — but they ask "is anything in the tree vulnerable today?", which is answered after the change has landed. By then the bad version is on the branch and the choice is between reverting and rushing a fix.

This asks "does this pull request introduce one?" and answers before the merge button is available.

It diffs the dependency manifests of base and head, so it only ever reports what the change itself brings in. An advisory that was already there is not this job's business — which is what stops it becoming the kind of check people learn to ignore.

  • fail-on-severity: moderate, matching the audits that run after it. A gate laxer than the one behind it only lets something through to be rejected a minute later.
  • comment-summary-in-pr: on-failure — including licence changes, which do not fail the job but are worth seeing in the diff. Two libraries here have already moved to commercial terms in a major version.

Free on public repositories. Needs the dependency graph, which is enabled.

The NuGet and npm audits already fail the build on an advisory, but they ask
'is anything in the tree vulnerable today?' — which is answered after the
change has landed. By then the bad version is on the branch and the choice is
between reverting and rushing a fix.

This asks 'does this pull request introduce one?' and answers before the merge
is available. It diffs the dependency manifests of base and head, so it only
reports what the change itself brings in; an advisory that was already there
is not this job's business.

fail-on-severity is moderate to match the audits that run after it. A gate
laxer than the one behind it only lets something through to be rejected a
minute later.

Free on public repositories; needs the dependency graph, which is enabled.
@bgard68
bgard68 merged commit 9292f3f into main Aug 2, 2026
3 checks passed
@bgard68
bgard68 deleted the build/dependency-review branch August 2, 2026 17:08
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