Skip to content

Commit eb9ae04

Browse files
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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/security.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: go install github.com/google/osv-scanner/cmd/osv-scanner@latest
5353

5454
- name: Run OSV Scanner
55-
run: $(go env GOPATH)/bin/osv-scanner scan source -r .
55+
run: $(go env GOPATH)/bin/osv-scanner scan -r .
5656

5757
gosec:
5858
name: Go Security Analysis

0 commit comments

Comments
 (0)