Skip to content

Commit

Permalink
fix: actions permissions and upgrade to 1.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
luohf-infinilabs committed Feb 6, 2025
1 parent 0bf5432 commit 26518f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ on:
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
# Read commit contents
# Only need to read contents
contents: read

jobs:
scan-pr:
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@1f1242919d8a60496dd1874b24b62b2370ed4c78" # v1.7.1
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.1"
with:
# Example of specifying custom arguments
scan-args: |-
Expand Down

0 comments on commit 26518f5

Please sign in to comment.