Skip to content

Commit

Permalink
ci(github-actions): add osv-scanner job
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4ko committed Feb 21, 2025
1 parent abe942c commit 88dc37c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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]

permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read

jobs:
scan-pr:
uses: "google/osv-scanner-action/.github/workflows/[email protected]"
with:
scan-args: |-
-r
--skip-git
./

0 comments on commit 88dc37c

Please sign in to comment.