Run2 trivy offline
Optimized Trivy offline scanning for lock files, including all dependency types.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_trivy-offlineAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, 170 tokens by cl100k_base, as published. Nobody here has run it
Optimized Trivy Offline Scanning
This skill covers enhanced offline scanning techniques using Trivy.
Scanning All Dependencies
By default, Trivy might skip dev dependencies. For a complete audit of a package-lock.json, use the --include-dev-deps flag.
trivy fs /path/to/target \
--format json \
--output report.json \
--scanners vuln \
--include-dev-deps \
--skip-db-update \
--offline-scan \
--cache-dir /path/to/trivy/cache
Troubleshooting Database Issues
If the scan fails due to database initialization, verify the path:
- Ensure
trivy.dbis in<cache-dir>/db/. - Ensure the user has read permissions to the database file.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.