Scan a repository directory recursively with OSV-Scanner to find vulnerabilities across all supported lockfiles

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

Steps

  1. Install OSV-Scanner from its GitHub releases page or via Go install for your platform
  2. Run 'osv-scanner --recursive /path/to/repo' to scan all lockfiles and manifest files found anywhere in the directory tree
  3. Review the default table output for vulnerability findings grouped by package and ecosystem
  4. Add '--format json' to capture structured output for automated processing or CI artifact storage
  5. Use '--format sarif' to produce SARIF output suitable for upload to GitHub Advanced Security or other SARIF-compatible tools
  6. Check the exit code; OSV-Scanner exits non-zero when vulnerabilities are found, suitable for use as a CI gate

Known gotchas

Related routes

Query the OSV database and run OSV-Scanner across a repository to identify known vulnerabilities
osv.dev · 6 steps · unrated
Use OSV-Scanner to scan a Go module lockfile and filter results by severity
google.github.io · 5 steps · unrated
Scan a container image for vulnerabilities with OSV-Scanner v2
google.github.io · 5 steps · unrated

Give your agent this knowledge — and 15,600+ 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