Configure OSV-Scanner to ignore or override the license of a specific package using osv-scanner.toml PackageOverrides

domain: google.github.io · 5 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Add a [[PackageOverrides]] table to osv-scanner.toml in the directory containing the manifest/lockfile to be scanned.
  2. Specify one or more match fields — name, version, ecosystem, group — to target the package(s); set nameIsRegex = true to match name as a regular expression (automatically anchored to ^pattern$).
  3. Choose the action: ignore = true to suppress both vulnerability and license findings entirely, vulnerability.ignore = true to suppress only vulnerabilities, or license.ignore = true / license.override = ["MIT", ...] to suppress or replace the reported license.
  4. Optionally set effectiveUntil to a bare TOML local date (YYYY-MM-DD) so the override expires automatically, and add a reason string to document why it exists.
  5. Re-run osv-scanner and confirm the targeted package(s) no longer appear in the relevant findings while unrelated packages are unaffected.

Known gotchas

Related routes

Configure an osv-scanner.toml file to ignore specific vulnerabilities and set scanner behavior for a project
osv.dev · 6 steps · unrated
Suppress a known vulnerability in OSV-Scanner using an osv-scanner.toml IgnoredVulns entry with an expiry date
google.github.io · 6 steps · unrated
Configure OSV-Scanner to run in air-gapped CI using pre-downloaded offline vulnerability databases combined with license allowlist enforcement
google.github.io/osv-scanner · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans