From 88dc37c3d909099a3659ac5a24fcc466339ce65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Oblak?= Date: Fri, 21 Feb 2025 14:57:20 +0100 Subject: [PATCH] ci(github-actions): add osv-scanner job --- .github/workflows/osv-scanner.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/osv-scanner.yml diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml new file mode 100644 index 0000000..0be34c5 --- /dev/null +++ b/.github/workflows/osv-scanner.yml @@ -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/osv-scanner-reusable.yml@v1.9.1" + with: + scan-args: |- + -r + --skip-git + ./