Skip to content

Commit 7e24d42

Browse files
committed
workflow: declare trivy's permissions within the job
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
1 parent 31284de commit 7e24d42

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/trivy-periodic.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@ on:
66
branches:
77
- main
88

9-
permissions:
10-
contents: read
11-
security-events: write
12-
actions: read
13-
149
jobs:
1510
trivy-scan-vulns:
1611
permissions:
12+
contents: read
1713
security-events: write
14+
actions: read
1815
runs-on: ubuntu-24.04
1916
name: Scan vulnerabilities
2017
steps:

0 commit comments

Comments
 (0)