Skip to content

Commit

Permalink
chore: bump up actions workflow in osv scanner (#138)
Browse files Browse the repository at this point in the history
* chore: bump up actions workflow in osv scanner

* chore: scan job permission update
  • Loading branch information
deepakraog authored Nov 13, 2024
1 parent 429139f commit 1269f28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/osv-scanner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
scan-scheduled:
permissions:
contents: read
actions: read
security-events: write
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
with:
Expand All @@ -41,6 +43,8 @@ jobs:
scan-pr:
permissions:
contents: read
actions: read
security-events: write
if: ${{ github.event_name == 'pull_request' || github.event_name == 'merge_group' }}
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml@19ec1116569a47416e11a45848722b1af31a857b" # v1.9.0
with:
Expand Down

0 comments on commit 1269f28

Please sign in to comment.