-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Max Fisher <[email protected]>
- Loading branch information
1 parent
08c4208
commit f964386
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: OSV-Scanner PR Scan | ||
|
||
# Change "main" to your default branch if you use a different name, i.e. "master" | ||
on: | ||
pull_request: | ||
branches: [ main ] | ||
merge_group: | ||
branches: [ main ] | ||
|
||
# Declare default permissions as read only. | ||
permissions: read-all | ||
|
||
jobs: | ||
scan-pr: | ||
uses: "google/osv-scanner/.github/workflows/osv-scanner-reusable-pr.yml@main" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: OSV-Scanner Scheduled Scan | ||
|
||
on: | ||
schedule: | ||
- cron: '50 1 * * 6' # run at 01:50 UTC every Saturday | ||
# Change "main" to your default branch if you use a different name, i.e. "master" | ||
push: | ||
branches: [ main ] | ||
|
||
permissions: | ||
# Require writing security events to upload SARIF file to security tab | ||
security-events: write | ||
# Only need to read contents | ||
contents: read | ||
|
||
jobs: | ||
scan-scheduled: | ||
uses: "google/osv-scanner/.github/workflows/osv-scanner-reusable.yml@main" |