Skip to content

Commit

Permalink
Fix permissions in PR osv-scanner (#625)
Browse files Browse the repository at this point in the history
Fix permissions in Github actions PR example.
  • Loading branch information
another-rex authored Nov 1, 2023
1 parent 130254c commit b099238
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 b099238

Please sign in to comment.