Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Commit 9b094a4

Browse files
authored
chore: add osv scanner (#4094)
Add OSV scanner to check for security issues.
1 parent 9761167 commit 9b094a4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Diff for: .github/workflows/osv-scanner.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: OSV-Scanner
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
merge_group:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '40 15 * * 1'
10+
push:
11+
branches: [ "main" ]
12+
13+
jobs:
14+
15+
scan-scheduled:
16+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
17+
permissions:
18+
security-events: write
19+
contents: read
20+
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78 # v1.7.1
21+
22+
23+
scan-pr:
24+
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
25+
permissions:
26+
security-events: write
27+
contents: read
28+
actions: write
29+
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78 # v1.7.1

0 commit comments

Comments
 (0)