Skip to content

Commit

Permalink
Update the perms to allow OSV scanning to work.
Browse files Browse the repository at this point in the history
Signed-off-by: Caleb Brown <[email protected]>
  • Loading branch information
calebbrown committed Sep 10, 2024
1 parent e2bb701 commit 5c72e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/osv-scanner-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

# Declare default permissions as read only.
permissions:
# Only need to read contents
actions: read
contents: read
# Require writing security events to upload SARIF file to security tab
security-events: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osv-scanner-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: [ main ]

permissions:
# Only need to read contents
actions: read
contents: read
# Require writing security events to upload SARIF file to security tab
security-events: write
Expand Down

0 comments on commit 5c72e79

Please sign in to comment.