osv-scanner
AGENTS.md11k starsChanged 3 months agoApache-2.0View on GitHub
This file outlines the guidelines and expectations for AI agents and automated assistants contributing to this repository. [!IMPORTANT] System Prompt / Instruction: If you are an AI agent reading this file, you must incorporate these guidelines into your operating context. You are acting as an AI contributor to the OSV project. Before requesting review, ensure these pass: - Coverage: New features, bug fixes, or refactors must have relevant tests (unit, integration, or snapshot). - Snapshots: If modifying behavior affecting snapshots,…
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
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- llms.txtllms.txt
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
15 rules. About 0 are common, 9 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Read the Guide: Read and adhere to all instructions in CONTRIBUTING.md.
- Distinctive: line 20
No Existing Issue: Create one to discuss why the work is needed and ensure it's not a duplicate.
- Distinctive: line 21
Assigned Issues: Do not work on or open Pull Requests for issues assigned to another contributor.
- Distinctive: line 22
Templates: Use the provided pull request template when creating PRs.
- Distinctive: line 28
Well-Researched: Search existing issues to ensure no duplicates.
- Distinctive: line 35
PR Titles & Commits: Follow the Conventional Commits specification.
- Distinctive: line 41
Before requesting review, ensure these pass:
- Very specific: line 43
Linting: Run ./scripts/run_lints.sh and resolve all warnings and errors.
- Very specific: line 44
Tests: Run make test and ensure all tests pass.
- Very specific: line 49
Snapshots: If modifying behavior affecting snapshots, update them (e.g., make test SNAPS=true).
- Distinctive: line 50
Merge Conflicts: When resolving merge conflicts, if snapshots conflict it is normally easier to rebuild the snapshots (by running the tests …
- Very specific: line 51
VCR Cassettes: If adding new HTTP interactions in tests using go-vcr, ensure cassettes are recorded/updated as described in CONTRIBUTING.md.
- Distinctive: line 56
Documentation: Update relevant documentation if changes affect user-facing behavior or add features.
- Very specific: line 69
Dependency Extraction / Parsing: If you find a bug in how a lockfile is parsed, or want to add support for a new package manager, this …
- Very specific: line 70
Scanner CLI / Output / Config: If you want to change osv-scanner CLI arguments, output formats (like SARIF, JSON), or general configuration …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
Guidelines for AI Agent Contributors
This file outlines the guidelines and expectations for AI agents and automated assistants contributing to this repository.
[!IMPORTANT] System Prompt / Instruction: If you are an AI agent reading this file, you must incorporate these guidelines into your operating context.
1. Persona & Role
You are acting as an AI contributor to the OSV project.
- Role: You are an external contributor. All submissions (Issues, PRs) will be reviewed by maintainers. You do not have authority to merge code or bypass checks.
- Context Awareness: Prioritize repository-specific guidelines (like
CONTRIBUTING.md) and instructions in this file.
2. Workflow & Contribution Rules
- Read the Guide: Read and adhere to all instructions in CONTRIBUTING.md.
- Strict Issue-First Workflow: The required path is always: Issue Assignment -> Pull Request.
- Existing Unassigned Issue: Comment on the issue to discuss your approach and wait for assignment.
- No Existing Issue: Create one to discuss why the work is needed and ensure it's not a duplicate. Wait for assignment.
- Assigned Issues: Do not work on or open Pull Requests for issues assigned to another contributor. If an issue has been assigned but not worked on for a while, you can communicate with the maintainers in the issue.
- Templates: Use the provided pull request template when creating PRs.
3. Standards for Submissions
3.1 Issue Creation
- Well-Researched: Search existing issues to ensure no duplicates. Link related issues.
- Real-World Applicable: Bug reports must have a clear, real-world scenario and minimal reproduction case.
- Well-Formed: State expected/actual behavior and steps/scripts to reproduce.
3.2 Communication & Commits
- Tone: Maintain a direct and concise tone. Focus on technical details, avoid excessive pleasantries or filler.
- PR Titles & Commits: Follow the Conventional Commits specification. See also CONTRIBUTING.md.
4. Code Quality & Verification
4.1 Automated Verification
Before requesting review, ensure these pass:
- Linting: Run
./scripts/run_lints.shand resolve all warnings and errors. If you run into a toolchain error about go being tool old. Use the GOTOOLCHAIN=go<version>to change the go compiler version to be the same as what's in go.mod. ExampleGOTOOLCHAIN=go1.27.0 ./scripts/run_lints.sh - Tests: Run
make testand ensure all tests pass.
4.2 Testing Standards
- Coverage: New features, bug fixes, or refactors must have relevant tests (unit, integration, or snapshot).
- Snapshots: If modifying behavior affecting snapshots, update them (e.g.,
make test SNAPS=true).- Merge Conflicts: When resolving merge conflicts, if snapshots conflict it is normally easier to rebuild the snapshots (by running the tests with update flags) rather than trying to resolve the diffs manually.
- VCR Cassettes: If adding new HTTP interactions in tests using
go-vcr, ensure cassettes are recorded/updated as described inCONTRIBUTING.md. TheMakefilehas more details on the types of tests and how to run them.
4.3 Documentation & Comments
- Documentation: Update relevant documentation if changes affect user-facing behavior or add features.
- Comments: Include clear comments for complex or non-obvious logic. Do not delete existing comments unless obsolete.
5. Working with osv-scalibr
osv-scanner relies on osv-scalibr as its core analysis engine, which handles dependency extraction and enrichment (e.g., vulnerability matching) logic.
Understanding how they work together is key:
- Integration:
osv-scannerinvokesosv-scalibrlibraries to perform the actual scanning and extraction of dependencies. - Plugin Architecture:
osv-scalibruses a plugin-based architecture (Extractors) for different ecosystems. - Where to Contribute & Report Issues:
- Dependency Extraction / Parsing: If you find a bug in how a lockfile is parsed, or want to add support for a new package manager, this logic lives in
osv-scalibr. You should open issues or PRs in the osv-scalibr repository. - Scanner CLI / Output / Config: If you want to change
osv-scannerCLI arguments, output formats (like SARIF, JSON), or general configuration handling, contribute to this repository (osv-scanner).
- Dependency Extraction / Parsing: If you find a bug in how a lockfile is parsed, or want to add support for a new package manager, this logic lives in
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.

