Skip to content

Commit c437a18

Browse files
committed
Define top level Permission for ci-image-scanning workflow
Signed-off-by: aditya7302 <[email protected]>
1 parent 5e8152a commit c437a18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/ci-image-scanning.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
# for PRs initiated by Dependabot.
66
branches-ignore:
77
- 'dependabot/**'
8+
9+
permissions:
10+
contents: read # for actions/checkout to fetch code
11+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
12+
813
jobs:
914
use-trivy-to-scan-image:
1015
name: image-scanning

0 commit comments

Comments
 (0)