Skip to content

Commit f3a9676

Browse files
InfantLabclaude
andcommitted
fix(ci): repair security-scan job (valid Trivy action + SARIF permissions)
The job pinned aquasecurity/trivy-action@0.28.0, a tag that no longer resolves, so the job failed at startup. Bump to 0.35.0 and grant the security-events: write permission the SARIF upload step needs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent fbefda0 commit f3a9676

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,15 @@ jobs:
179179
security-scan:
180180
runs-on: ubuntu-latest
181181
needs: test
182+
permissions:
183+
contents: read
184+
security-events: write
182185

183186
steps:
184187
- uses: actions/checkout@v4
185188

186189
- name: Run Trivy vulnerability scanner
187-
uses: aquasecurity/trivy-action@0.28.0
190+
uses: aquasecurity/trivy-action@0.35.0
188191
with:
189192
scan-type: "fs"
190193
scan-ref: "."

0 commit comments

Comments
 (0)