Skip to content

Commit 25f5fb4

Browse files
committed
ci: rename-trivy
1 parent 6749d46 commit 25f5fb4

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/scans.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ jobs:
302302
with:
303303
sarif_file: ${{ steps.grype.outputs.sarif }}
304304

305-
trivy:
305+
trivy-fs:
306306
permissions:
307307
contents: write
308308
security-events: write
@@ -314,16 +314,11 @@ jobs:
314314
- uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # 0.30
315315
with:
316316
scan-type: fs
317+
ignore-unfixed: true
318+
severity: HIGH,CRITICAL
317319
format: github
318320
output: dependency-results.sbom.json
319321
github-pat: ${{ github.token }}
320-
ignore-unfixed: true
321-
severity: HIGH,CRITICAL
322-
323-
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
324-
with:
325-
name: trivy-sbom-report
326-
path: dependency-results.sbom.json
327322

328323
- uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # 0.30
329324
with:
@@ -332,12 +327,13 @@ jobs:
332327
severity: HIGH,CRITICAL
333328
format: sarif
334329
output: trivy-results.sarif
330+
scanners: vuln,secret,misconfig
335331

336332
- uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3
337333
with:
338334
sarif_file: trivy-results.sarif
339335

340-
trivy-container:
336+
trivy-image:
341337
permissions:
342338
contents: write
343339
security-events: write
@@ -346,8 +342,6 @@ jobs:
346342
env:
347343
GHCR_IMAGE_NAME: ghcr.io/${{ github.repository }}
348344
steps:
349-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
350-
351345
- id: build
352346
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
353347
with:
@@ -356,13 +350,20 @@ jobs:
356350

357351
- uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # 0.30
358352
with:
359-
image-ref: ${{ env.IMAGE_ID}}
353+
image-ref: ${{ steps.build.outputs.imageid }}
354+
ignore-unfixed: true
355+
severity: HIGH,CRITICAL
356+
format: github
357+
output: dependency-results.sbom.json
358+
github-pat: ${{ github.token }}
359+
360+
- uses: aquasecurity/trivy-action@6c175e9c4083a92bbca2f9724c8a5e33bc2d97a5 # 0.30
361+
with:
362+
image-ref: ${{ steps.build.outputs.imageid }}
360363
ignore-unfixed: true
361364
severity: HIGH,CRITICAL
362365
format: sarif
363366
output: trivy-results.sarif
364-
env:
365-
IMAGE_ID: ${{ steps.build.outputs.imageid }}
366367

367368
- uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3
368369
with:

0 commit comments

Comments
 (0)