Skip to content

Commit

Permalink
workflow: declare trivy's permissions within the job
Browse files Browse the repository at this point in the history
Signed-off-by: Tuomas Katila <[email protected]>
  • Loading branch information
tkatila committed Dec 17, 2024
1 parent 31284de commit 7e24d42
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/trivy-periodic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ on:
branches:
- main

permissions:
contents: read
security-events: write
actions: read

jobs:
trivy-scan-vulns:
permissions:
contents: read
security-events: write
actions: read
runs-on: ubuntu-24.04
name: Scan vulnerabilities
steps:
Expand Down

0 comments on commit 7e24d42

Please sign in to comment.