Skip to content

Commit

Permalink
Github Action for OSV-Scanner (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er authored Oct 26, 2024
1 parent 2540369 commit ef13e7b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/osv-scanner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: OSV-Scanner

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: 38 20 * * 1
workflow_dispatch: {}

permissions:
actions: read
contents: read
security-events: write

jobs:
scan-scheduled:
name: OSV scan scheduled

if: github.event_name == 'push' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@19ec1116569a47416e11a45848722b1af31a857b # v1.9.0
with:
scan-args: |-
-r
--skip-git
./
scan-pr:
name: OSV scan PR

if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
uses: google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@19ec1116569a47416e11a45848722b1af31a857b # v1.9.0
with:
scan-args: |-
-r
--skip-git
./

0 comments on commit ef13e7b

Please sign in to comment.