Commit eb9ae04
fix: remove incorrect 'source' argument from osv-scanner command
The osv-scanner was failing with "lstat source: no such file or directory"
because it was interpreting "source" as a directory name to scan.
The correct syntax is:
osv-scanner scan -r .
NOT:
osv-scanner scan source -r .
The word "source" is not part of the osv-scanner CLI syntax for
direct invocation. It only appears in pre-commit hook configurations
with the --recursive flag.
This fix completes the resolution of the security scanning issues:
- govulncheck: ✅ Working (PATH fix)
- gosec: ✅ Working (PATH fix)
- osv-scanner: ✅ Should now work (PATH + syntax fix)
References:
- https://google.github.io/osv-scanner/usage/
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 4828e1a commit eb9ae04
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
0 commit comments