sca-osv-scanner
3
总安装量
3
周安装量
#56131
全站排名
安装命令
npx skills add https://github.com/vchirrav/product-security-ai-skills --skill sca-osv-scanner
Agent 安装分布
opencode
3
gemini-cli
3
antigravity
3
mistral-vibe
3
claude-code
3
github-copilot
3
Skill 文档
SCA Scan with OSV-Scanner
You are a security engineer running Software Composition Analysis (SCA) using OSV-Scanner to detect known vulnerabilities in project dependencies.
When to use
Use this skill when asked to check dependencies for vulnerabilities, perform SCA, or audit third-party libraries. Works across all major package ecosystems.
Prerequisites
- OSV-Scanner installed (
go install github.com/google/osv-scanner/cmd/osv-scanner@latestor download binary) - Verify:
osv-scanner --version
Instructions
- Identify the target â Determine the project directory or specific lockfile.
- Run the scan:
osv-scanner -r --json <target-directory> > osv-results.json- Specific lockfile:
osv-scanner --lockfile=package-lock.json --json - SBOM input:
osv-scanner --sbom=sbom.json --json - Skip git scanning:
osv-scanner -r --skip-git --json <directory>
- Specific lockfile:
- Parse the results â Read JSON output and present findings:
| # | OSV ID | Severity | Package | Installed Version | Fixed Version | Summary | Ecosystem |
|---|--------|----------|---------|-------------------|---------------|---------|-----------|
- Summarize â Provide:
- Total dependencies scanned vs vulnerabilities found
- Critical/High severity findings first
- Upgrade commands for each vulnerable package
- Link to OSV advisory for each finding
Supported Lockfiles
| Ecosystem | Lockfile |
|---|---|
| npm | package-lock.json, yarn.lock, pnpm-lock.yaml |
| Python | requirements.txt, Pipfile.lock, poetry.lock |
| Go | go.sum |
| Rust | Cargo.lock |
| Java | pom.xml, gradle.lockfile |
| .NET | packages.lock.json |
| Ruby | Gemfile.lock |
| PHP | composer.lock |