Skip to content

Commit 4f1d739

Browse files
committed
gha: govulncheck: make sure read permissions are set
If any permission is set, any permission not included in the list is implicitly set to "none". see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions The govulncheck check need read permissions, which is not problematic for public repositories, but may be needed when running in a private fork (such as those used for security releases). Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 92da106 commit 4f1d739

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ jobs:
136136
permissions:
137137
# required to write sarif report
138138
security-events: write
139+
# required to check out the repository
140+
contents: read
139141
steps:
140142
-
141143
name: Checkout

0 commit comments

Comments
 (0)