--fail-on rules
Fail builds on selected licence, vulnerability, or supply-chain-source policies. Example: npx dependency-radar --fail-on <policy>.
CI guardrails
Use Dependency Radar policy rules and compare mode to fail on newly introduced risk, not permanently on old tolerated debt.
npx dependency-radarWhat it helps with
Dependency Radar runs against your installed JavaScript or TypeScript project and produces a self-contained report. Registry backed audit, outdated, signature, or enrichment checks need registry access unless you run with --offline.
Fail builds on selected licence, vulnerability, or supply-chain-source policies. Example: npx dependency-radar --fail-on <policy>.
Compare a current scan against a committed Dependency Radar JSON baseline from your main branch.
Focus CI on newly introduced install scripts, native bindings, bins, sources, and registry signals.
Emit structured reports for custom checks, dashboards, and review workflows.
Export SARIF for code scanning and security workflows.
Generate CycloneDX and SPDX outputs from the same dependency scan.
Noise
A flat vulnerability gate often fails forever on old tolerated debt. Dependency Radar is designed to help you gate the change, not just shout about the backlog.
Policy
Policy rules make the build behaviour clear. You decide which licence, vulnerability, or supply-chain-source findings should fail the run.
Delta
Compare mode helps teams focus on new risk. Commit a previous JSON report, scan the current branch, and fail on changes that cross your line.
CI portability
Dependency Radar does not require a hosted scanner or GitHub app. Run it in GitHub Actions, GitLab CI, Jenkins, CircleCI, or another pipeline that can run Node.js commands.
Try it
Run Dependency Radar in CI to produce JSON, SARIF, CycloneDX, SPDX, and HTML artefacts without adding a hosted scanner or GitHub app.
npx dependency-radar