Skip to content

Commit e2753b7

Browse files
committed
Change permissions to be more granular
1 parent bf91b40 commit e2753b7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/osv.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ on:
1515
branches: [main]
1616

1717
permissions:
18-
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
1918
actions: read
20-
# Require writing security events to upload SARIF file to security tab
21-
security-events: write
22-
# Only need to read contents
2319
contents: read
2420

2521
jobs:
2622
scan-pr:
23+
permissions:
24+
security-events: write
2725
uses: "google/osv-scanner-action/.github/workflows/[email protected]"

0 commit comments

Comments
 (0)