Skip to content

Commit a81cea3

Browse files
authored
Change OSV-Scanner cron schedule to every minute
Updated the cron schedule for OSV-Scanner to run every minute.
1 parent 4c515f6 commit a81cea3

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/osv-scanner.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: OSV-Scanner
2+
3+
on:
4+
pull_request:
5+
branches: [ "main", "DSSRF_Branch_Rule" ]
6+
merge_group:
7+
branches: [ "main", "DSSRF_Branch_Rule" ]
8+
schedule:
9+
- cron: '* * * * *'
10+
push:
11+
branches: [ "main", "DSSRF_Branch_Rule" ]
12+
13+
permissions:
14+
# Require writing security events to upload SARIF file to security tab
15+
security-events: write
16+
# Read commit contents
17+
contents: read
18+
19+
jobs:
20+
scan-scheduled:
21+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
22+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78" # v1.7.1
23+
with:
24+
# Example of specifying custom arguments
25+
scan-args: |-
26+
-r
27+
--skip-git
28+
./
29+
scan-pr:
30+
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
31+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78" # v1.7.1
32+
with:
33+
# Example of specifying custom arguments
34+
scan-args: |-
35+
-r
36+
--skip-git
37+
./

0 commit comments

Comments
 (0)