Skip to content

Commit 00dbe39

Browse files
committed
Replace osv-scanner CI job with those from the online docs
1 parent 684004a commit 00dbe39

File tree

3 files changed

+36
-49
lines changed

3 files changed

+36
-49
lines changed

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

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

.github/workflows/osv-scanner.yml

-49
This file was deleted.

0 commit comments

Comments
 (0)