Skip to content

Commit f26b0bf

Browse files
committed
Add test workflow for PRs.
1 parent 19ba15d commit f26b0bf

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/test-pr.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# OSV-Scanner PR scanning reusable workflow, can be used as a PR action to
2+
# detect new vulnerabilities being introduced.
3+
name: Use OSV to do SCA on main (daily) and PRs
4+
5+
on:
6+
pull_request:
7+
branches: [main]
8+
merge_group:
9+
branches: [main]
10+
schedule:
11+
- cron: 0 0 * * *
12+
push:
13+
branches: [main]
14+
15+
jobs:
16+
## run the following on PRs
17+
osv-scan-pr:
18+
uses: digitalbazaar/github-workflow-shared-action-osv-scanner/.github/workflows/osv-scanner-pr.yaml@64442e54b86273b20da4a1f4bf2744b43f2e7e02
19+
permissions:
20+
contents: read
21+
pull-requests: write
22+
23+
## run the following only on the main branch
24+
osv-scan-main:
25+
uses: digitalbazaar/github-workflow-shared-action-osv-scanner/.github/workflows/osv-scanner-main.yaml@64442e54b86273b20da4a1f4bf2744b43f2e7e02
26+
permissions:
27+
contents: read
28+
issues: write

0 commit comments

Comments
 (0)