osv-scanner
llms.txt11k starsChanged 3 months agoApache-2.0View on GitHub
A high-performance vulnerability scanner for Open Source Vulnerabilities (OSV), written in Go. osv-scanner acts as the presentation and orchestration layer, while osv-scalibr (https://github.com/google/osv-scalibr) provides the core analysis engine.
Trending
Quiet since September.about the whole repository
Who's talking about google/osv-scanner
- A Hacker News story“Vulnerability scanner written in Go that uses osv.dev data”Hacker News · Dec 16, 2022 · 162 points
- golang/go“proposal: encoding/xml: Add EmptyElement token type to support self-closing elements.”GitHub · Sep 4, 2024 · 12 reactions
- runatlantis/atlantis“Remove old dependencies”GitHub · Dec 14, 2022 · 9 reactions
- @baldanders.info“#golang 最近気がついたが,拙作の goark/go-cvss パッケージが google/osv-scanner で使われているっぽい https://github.com/google/osv-scanner”Bluesky · Jun 25, 2023 · 6 likes
- actions/checkout“How to checkout current PR branch?”GitHub · Jan 13, 2023 · 6 reactions
The biggest 5 of 25 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 25
Talked about on GitHub, Bluesky and Hacker News (25 times).
On GitHub · 18
- Sep 4, 2024proposal: encoding/xml: Add EmptyElement token type to support self-closing elements. — golang/go12 reactions · 13 comments
- Dec 14, 2022Remove old dependencies — runatlantis/atlantis9 reactions · 5 comments
- Jan 13, 2023How to checkout current PR branch? — actions/checkout6 reactions · 4 comments
- Aug 29, 2026proposal: x/crypto/openpgp: isolate, tag, delete — golang/go4 reactions · 5 comments
- Jul 15, 2026chore(deps): bump the github-actions group across 1 directory with 16 updates — KooshaPari/ShareCLI4 reactions · 12 comments
13 more on GitHub
- Dec 1, 2024feat: support extracting from `uv.lock` — google/osv-scalibr4 reactions
- Sep 22, 2026Update ci and development environment — MooseGooseConsulting/ai-config-registry3 reactions · 4 comments
- Aug 19, 2026Update github actions - autoclosed — MooseGooseConsulting/ai-config-registry3 reactions · 12 comments
- Sep 5, 2026fix(deps): clear known advisories in the pass-through test project — BerriAI/litellm2 reactions · 2 comments
- Sep 1, 2026fix(deps): patch vulnerable cookbook and terraform provider dependencies — BerriAI/litellm2 reactions · 8 comments
- Jul 19, 2026chore(deps): bump the github-actions group across 1 directory with 18 updates — KooshaPari/ShareCLI2 reactions · 7 comments
- Jul 19, 2026chore(deps): bump the github-actions group across 1 directory with 17 updates — KooshaPari/ShareCLI2 reactions · 5 comments
- Apr 9, 2026chore: Restore OSV-Scanner GitHub Action workflow — Hiroki-org/OpenShelf2 reactions · 6 comments
- Jan 16, 2026Bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml from 2.3.1 to 2.3.2 — Voornaamenachternaam/chachacrypt2 reactions · 3 comments
- Jan 16, 2026Bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml from 2.3.1 to 2.3.2 — Voornaamenachternaam/chachacrypt2 reactions · 3 comments
- Jan 15, 2026Bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml from 2.3.1 to 2.3.2 — Voornaamenachternaam/Filecryption2 reactions
- Jan 15, 2026Bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml from 2.3.1 to 2.3.2 — Voornaamenachternaam/Filecryption2 reactions
- Jan 15, 2026Bump google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml from 2.3.1 to 2.3.2 — Voornaamenachternaam/hatsmith2 reactions · 3 comments
On Bluesky · 5
- Jun 25, 2023#golang 最近気がついたが,拙作の goark/go-cvss パッケージが google/osv-scanner で使われているっぽい https://github.com/google/osv-scanner — @baldanders.info6 likes and reposts
- Jul 7, 2026osv-scanner by @GoogleOSS (⭐️ 10619) Vulnerability scanner written in Go which uses the data provided by https://osv.dev #go — @golangoss.bsky.social1 likes and repost
- May 23, 2026osv-scanner by @GoogleOSS (⭐️ 10314) Vulnerability scanner written in Go which uses the data provided by https://osv.dev #go — @golangoss.bsky.social1 likes and repost
- Mar 19, 2025📦 google / osv-scanner ⭐ 6,699 (+28) 🗒 Go Vulnerability scanner written in Go which uses the data provided by https://osv.dev — @github-trending.bsky.social1 likes and repost
- Apr 24, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 google / osv-scanner ⭐ 9,238 (+350) 🗒 Go Vulnerability scanner written in Go which uses the data… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Dec 16, 2022Vulnerability scanner written in Go that uses osv.dev data162 points · 14 comments
- Dec 15, 2022OSV-Scanner1 point
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this llms.txt into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Place the extractor in the appropriate subdirectory under extractor/filesystem/language/ (or similar).
- Very specific: line 31
Add thorough tests within osv-scalibr.
- Very specific: line 35
Update dependencies: Run go get github.com/google/osv-scalibr@v...
- Very specific: line 37
Experimental features: If the feature is experimental, instead of adding it to a preset, add logic in pkg/osvscanner/scan.go to enable it …
≈ “Common” is an estimate: at least 1 in 5 of the 1,484 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
# osv-scanner
> A high-performance vulnerability scanner for Open Source Vulnerabilities (OSV), written in Go.
## Overview & Role
`osv-scanner` is a user-facing command-line interface (CLI) tool and the primary consumer of the `osv-scalibr` library. It handles user interaction, parses arguments, configures the scan, and formats results.
## Scan Workflow
`osv-scanner` relies on the rich set of built-in plugins available within `osv-scalibr`. When a user runs `osv-scanner`, it:
1. Determines the scan targets.
2. Initializes `osv-scalibr` with a configuration.
3. Selects the appropriate `osv-scalibr` plugins to enable based on the scan type and user flags. This typically includes various Extractors for different ecosystems.
4. Executes the scan using `osv-scalibr`.
5. Receives the structured `ScanResults` from `osv-scalibr`.
6. Formats these results for display to the user.
## Integration with osv-scalibr
`osv-scanner` acts as the presentation and orchestration layer, while `osv-scalibr` (https://github.com/google/osv-scalibr) provides the core analysis engine.
- **Explicit Enablement:** Plugins from `osv-scalibr` are NOT automatically used by `osv-scanner`. They must be explicitly imported and added to the `Plugins` slice within the `scalibr.ScanConfig`.
- **Plugin Configuration:** The primary logic for configuring which osv-scalibr plugins to run is within `pkg/osvscanner/scan.go` (and related files like `pkg/osvscanner/osvscanner.go`). Look for where `scalibr.ScanConfig` is created and populated.
- **Default Plugins:** `osv-scanner` maintains a list of default `osv-scalibr` extractors and enrichers it considers essential for a good baseline scan. This list is hardcoded in the `osv-scanner` codebase.
- **Experimental Plugins:** New or less stable plugins from `osv-scalibr` might be gated behind `osv-scanner` CLI flags (e.g., an `--x` flag) before being enabled by default.
### Example Workflow: Adding a new osv-scalibr plugin and using it in osv-scanner
1. **Develop in `osv-scalibr`:**
* Implement your new Extractor (e.g., `MyLangExtractor`) within the `google/osv-scalibr` repository, following its contribution guidelines and plugin interface.
* Place the extractor in the appropriate subdirectory under `extractor/filesystem/language/` (or similar).
* Register the new extractor in `osv-scalibr/plugin/list/list.go` so it can be enabled by name.
* Add thorough tests within `osv-scalibr`.
* Get the changes merged into `osv-scalibr`.
2. **Enable in `osv-scanner`:**
* **Update dependencies:** Run `go get github.com/google/osv-scalibr@v...` to pull in the new version containing your plugin. This might already be done automatically by dependabot.
* **Register in presets:** Open `internal/scalibrplugin/presets.go`, import the new plugin, and add it to the preset map if appropriate using its name and constructor.
* **Experimental features:** If the feature is experimental, instead of adding it to a preset, add logic in `pkg/osvscanner/scan.go` to enable it based on a CLI flag.
## Development & Testing Tips
- **Test Data:** Mock lockfiles and test fixtures are typically located in `testdata/` directories within the relevant packages.
## Repository Map
- [/cmd/osv-scanner](https://github.com/google/osv-scanner/tree/main/cmd/osv-scanner): Main CLI entry point.
- [/pkg/osvscanner](https://github.com/google/osv-scanner/tree/main/pkg/osvscanner): Public programmatic API.
- [/internal/output](https://github.com/google/osv-scanner/tree/main/internal/output): Result rendering (JSON, Table, SBOM).
- [/pkg/osvscanner/testdata](https://github.com/google/osv-scanner/tree/main/pkg/osvscanner/testdata): Test fixtures for scanner tests.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

