Skip to content

Commit 9ecbc1f

Browse files
committed
fix: pass explicit config path to OSV scanner workflow
OSV scanner looks for config files relative to lockfile location (webui/package-lock.json), not the repo root. Since osv-scanner.toml was moved to repo root in PR #145, the ignore rules weren't being found. Add --config flag via scan-args to explicitly point to the config file at repository root.
1 parent ed5b3c1 commit 9ecbc1f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/osv-scanner.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ jobs:
2020
scan-pr:
2121
if: (github.event_name == 'pull_request' && github.event.pull_request.draft == false) || github.event_name == 'merge_group'
2222
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.3.2
23+
with:
24+
scan-args: '--config ./osv-scanner.toml -r ./'
2325

2426
scan-scheduled:
2527
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
2628
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.3.2
29+
with:
30+
scan-args: '--config ./osv-scanner.toml -r ./'

0 commit comments

Comments
 (0)