Skip to content

Commit

Permalink
Merge pull request #5059 from aditya7302/ci-image-scanning-token-perm…
Browse files Browse the repository at this point in the history
…ission

Define top level Permission for ci-image-scanning workflow
  • Loading branch information
karmada-bot authored Jun 19, 2024
2 parents 5e8152a + c437a18 commit 5177d51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci-image-scanning.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ on:
# for PRs initiated by Dependabot.
branches-ignore:
- 'dependabot/**'

permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results

jobs:
use-trivy-to-scan-image:
name: image-scanning
Expand Down

0 comments on commit 5177d51

Please sign in to comment.