Scan a container image for vulnerabilities with OSV-Scanner v2

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

Steps

  1. Install OSV-Scanner v2 from the GitHub releases page or via `go install github.com/google/osv-scanner/cmd/osv-scanner@latest`
  2. Pull or tag the container image locally so it is accessible to the Docker daemon (e.g., `docker pull myrepo/myimage:tag`)
  3. Run the image scan with the v2 subcommand syntax: `osv-scanner scan image myrepo/myimage:tag`
  4. Review the output table listing vulnerable packages, affected OSV IDs, severity scores, and the layer in which each package was introduced
  5. Optionally pass `--format json` to emit structured JSON output suitable for ingestion into a CI pipeline or SIEM

Known gotchas

Related routes

Scan a container image for vulnerabilities using the Snyk Container CLI and gate CI on severity threshold
docs.snyk.io · 5 steps · unrated
Scan a container image for vulnerabilities and gate CI on severity thresholds using Trivy
aquasecurity.github.io/trivy · 5 steps · unrated
Scan a container image for vulnerabilities and generate an SBOM simultaneously using Trivy, outputting results in CycloneDX format
aquasecurity.github.io/trivy · 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