Skip to content

Commit 9827ac7

Browse files
authored
feat(ci): Add OSV
1 parent 48917bb commit 9827ac7

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/osv.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: OSV-Scanner
2+
3+
# Change "main" to your default branch if you use a different name, i.e. "master"
4+
on:
5+
pull_request:
6+
branches: [main]
7+
merge_group:
8+
branches: [main]
9+
10+
schedule:
11+
- cron: "30 12 * * 1"
12+
# Change "main" to your default branch if you use a different name, i.e. "master"
13+
push:
14+
branches: [main]
15+
16+
permissions:
17+
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
18+
actions: read
19+
# Require writing security events to upload SARIF file to security tab
20+
security-events: write
21+
# Only need to read contents
22+
contents: read
23+
24+
jobs:
25+
scan-pr:
26+
uses: "google/osv-scanner-action/.github/workflows/[email protected]"

0 commit comments

Comments
 (0)