Skip to content

Commit 2da4a97

Browse files
authored
Merge pull request #1934 from tkatila/tune-trivy-permissions
workflow: declare trivy's permissions within the job
2 parents 31284de + 7e24d42 commit 2da4a97

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.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)