Skip to content

Commit 8e54677

Browse files
authored
Merge pull request #5119 from zhzhuang-zju/joblevel
set the permissions required for job in ci-image-scanning.yaml
2 parents 0fdd4d9 + 9d73721 commit 8e54677

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ on:
55
# for PRs initiated by Dependabot.
66
branches-ignore:
77
- 'dependabot/**'
8-
98
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-
9+
contents: read
1310
jobs:
1411
use-trivy-to-scan-image:
12+
permissions:
13+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
1514
name: image-scanning
1615
if: ${{ github.repository == 'karmada-io/karmada' }}
1716
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)