Configure OSV-Scanner to run in air-gapped CI using pre-downloaded offline vulnerability databases combined with license allowlist enforcement

domain: google.github.io/osv-scanner · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Pre-download the OSV offline database bundles with the --download-offline-databases flag before the air-gapped job runs, and cache the resulting directory as a CI artifact.
  2. Run osv-scanner scan --offline-vulnerabilities (or the full --offline mode) against the lockfile/manifest to check for known vulnerabilities without any network calls during the job.
  3. Run osv-scanner scan --licenses=<allowlist> to summarize dependency licenses and flag violations against an approved license list.
  4. Emit results in SARIF format for later ingestion into code scanning once the pipeline reaches a network-connected stage.
  5. Refresh the cached offline database bundle on a recurring schedule, since it is a point-in-time snapshot and won't include newly published advisories until re-downloaded.

Known gotchas

Related routes

Configure OSV-Scanner in CI to output SARIF format and gate pull requests on new vulnerability findings
osv.dev · 6 steps · unrated
Query the OSV database and run OSV-Scanner across a repository to identify known vulnerabilities
osv.dev · 6 steps · unrated
Configure OSV-Scanner to ignore or override the license of a specific package using osv-scanner.toml PackageOverrides
google.github.io · 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