Skip to content

Commit 20c7439

Browse files
authored
added osv-scanner (#57)
1 parent 467ec23 commit 20c7439

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/osv-scanner-pr.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: OSV-Scanner PR Scan
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
merge_group:
7+
branches: [main]
8+
9+
permissions:
10+
# Require writing security events to upload SARIF file to security tab
11+
security-events: write
12+
# Only need to read contents
13+
contents: read
14+
15+
jobs:
16+
scan-pr:
17+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@75532bf0bf75464b047d80414dbce04449498365" # v1.7.3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: OSV-Scanner Scheduled Scan
2+
3+
on:
4+
schedule:
5+
- cron: "37 2 * * 5"
6+
push:
7+
branches: [main]
8+
9+
permissions:
10+
# Require writing security events to upload SARIF file to security tab
11+
security-events: write
12+
# Only need to read contents
13+
contents: read
14+
15+
jobs:
16+
scan-scheduled:
17+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@75532bf0bf75464b047d80414dbce04449498365" # v1.7.3

0 commit comments

Comments
 (0)