Skip to content

Commit 1b9fcf7

Browse files
committed
Update Trivy workflow to enhance permissions and upgrade action versions
1 parent 37db561 commit 1b9fcf7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/trivy.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@
77
merge_group:
88
workflow_dispatch:
99

10-
11-
permissions:
12-
actions: read
13-
contents: read
14-
security-events: write
15-
1610
jobs:
1711
build:
1812
name: 'trivy scan'
1913
runs-on: ubuntu-latest
14+
permissions:
15+
security-events: write
16+
contents: read
17+
2018
steps:
2119
- name: Harden Runner
22-
uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
20+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
2321
with:
2422
egress-policy: audit
2523

@@ -37,7 +35,7 @@
3735
output: report-fs.sarif
3836

3937
- name: Upload Trivy report (fs) GitHub Security
40-
uses: github/codeql-action/upload-sarif@d68b2d4edb4189fd2a5366ac14e72027bd4b37dd # v3.28.2
38+
uses: github/codeql-action/upload-sarif@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
4139
with:
4240
sarif_file: report-fs.sarif
4341
category: 'fs'

0 commit comments

Comments
 (0)