Skip to content

Commit

Permalink
Fix permissions in PR osv-scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Nov 1, 2023
1 parent 5a02f6c commit 3f2a95a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/github-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ on:
merge_group:
branches: [ main ]

# Declare default permissions as read only.
permissions: read-all
permissions:
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read

jobs:
scan-pr:
Expand Down

0 comments on commit 3f2a95a

Please sign in to comment.