Skip to content

Commit 09d6b16

Browse files
authored
chore: add workflow osv-scanner.yml
1 parent de4b252 commit 09d6b16

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/osv-scanner.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# A sample workflow which sets up periodic OSV-Scanner scanning for vulnerabilities,
7+
# in addition to a PR check which fails if new vulnerabilities are introduced.
8+
#
9+
# For more examples and options, including how to ignore specific vulnerabilities,
10+
# see https://google.github.io/osv-scanner/github-action/
11+
12+
name: OSV-Scanner
13+
14+
on:
15+
pull_request:
16+
branches: [ "main" ]
17+
18+
permissions:
19+
# Require writing security events to upload SARIF file to security tab
20+
security-events: write
21+
# Read commit contents
22+
contents: read
23+
24+
jobs:
25+
scan-pr:
26+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78" # v1.7.1
27+
with:
28+
# Example of specifying custom arguments
29+
scan-args: |-
30+
-r
31+
--skip-git
32+
./

0 commit comments

Comments
 (0)