Skip to content

Commit

Permalink
add OSV-Scanner github action
Browse files Browse the repository at this point in the history
Signed-off-by: Max Fisher <[email protected]>
  • Loading branch information
maxfisher-g committed Nov 1, 2023
1 parent 08c4208 commit f964386
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/osv-scanner-pr.yml
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"
18 changes: 18 additions & 0 deletions .github/workflows/osv-scanner-scheduled.yml
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"

0 comments on commit f964386

Please sign in to comment.