Skip to content

Commit 10204b0

Browse files
committed
added OSV security scan workflow
1 parent 9ec7816 commit 10204b0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/osv-scanner.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: OSV Scanner
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
merge_group:
7+
branches: [main]
8+
push:
9+
branches: [main]
10+
schedule:
11+
- cron: '0 3 * * *' # Daily at 03:00 UTC
12+
workflow_dispatch:
13+
14+
permissions:
15+
actions: read
16+
contents: read
17+
security-events: write
18+
19+
jobs:
20+
scan-pr:
21+
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
22+
uses: google/osv-scanner-action/.github/workflows/[email protected]
23+
24+
scan-scheduled:
25+
if: github.event_name == 'schedule' || github.event_name == 'push' || github.event_name == 'workflow_dispatch'
26+
uses: google/osv-scanner-action/.github/workflows/[email protected]

0 commit comments

Comments
 (0)