diff --git a/.github/workflows/osv-scanner.yml b/.github/workflows/osv-scanner.yml new file mode 100644 index 000000000..6f93baedc --- /dev/null +++ b/.github/workflows/osv-scanner.yml @@ -0,0 +1,30 @@ +name: OSV-Scanner + +on: + pull_request: + branches: [ "main" ] + push: + branches: [ "main" ] + +permissions: + actions: read + security-events: write + contents: read + +jobs: + scan-scheduled: + if: ${{ github.event_name == 'push' }} + uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v2.2.2" + with: + scan-args: |- + -r + --skip-git + ./ + scan-pr: + if: ${{ github.event_name == 'pull_request' }} + uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@v2.2.2" + with: + scan-args: |- + -r + --skip-git + ./