Skip to content

Commit 40bf6a2

Browse files
chore: Added osv-scanner workflow (#207)
1 parent 200378a commit 40bf6a2

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/osv-scanner.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: OSV Scanner
2+
3+
# Scans the repository for vulnerable dependencies using Google's OSV Scanner
4+
# Docs: https://google.github.io/osv-scanner/github-action/
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
schedule:
12+
- cron: '0 3 * * 1' # Every Monday at 03:00 UTC
13+
workflow_dispatch:
14+
15+
permissions:
16+
actions: read # required by reusable workflow to checkout and run
17+
contents: read # minimal read access
18+
security-events: write # needed to upload SARIF to code scanning
19+
20+
jobs:
21+
osv-scan:
22+
name: OSV Full Scan
23+
uses: google/osv-scanner-action/.github/workflows/[email protected]
24+
with:
25+
# Optional: override default scan arguments (defaults already recursive). Keep explicit for clarity.
26+
scan-args: |-
27+
--recursive
28+
./
29+
upload-sarif: true
30+
fail-on-vuln: false
31+
permissions:
32+
actions: read
33+
contents: read
34+
security-events: write

0 commit comments

Comments
 (0)