# This workflow uses actions that are not certified by GitHub. # They are provided by a third-party and are governed by # separate terms of service, privacy policy, and support # documentation. # Scan all dependencies on main and compare newly introduced vulnerabilities on PRs. # # For more examples and options, including how to ignore specific vulnerabilities, # see https://google.github.io/osv-scanner/github-action/ name: OSV-Scanner on: pull_request: branches: ["main"] merge_group: branches: ["main"] schedule: - cron: "45 8 * * 1" push: branches: ["main"] workflow_dispatch: permissions: # Require writing security events to upload SARIF file to security tab security-events: write # Read commit contents contents: read actions: read jobs: # Both pinned workflows default to a recursive scan of ./, including fuzz/. # OSV v2 excludes the root Git repository unless --include-git-root is set; # the old --skip-git flag is no longer supported. 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@b1d267aea5211fa648d9d442fa64b90dbdcbdd36" # v2.7.0 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@b1d267aea5211fa648d9d442fa64b90dbdcbdd36" # v2.7.0