File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -441,6 +441,27 @@ jobs:
441
441
with :
442
442
image-name : ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
443
443
444
+ - name : Run Trivy vulnerability scanner
445
+ uses : aquasecurity/trivy-action@master
446
+ if : ${{ (matrix.os == 'ubuntu-latest') }}
447
+ with :
448
+ image-ref : ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
449
+ format : ' table'
450
+ exit-code : ' 1'
451
+ ignore-unfixed : true
452
+ vuln-type : ' os,library'
453
+ severity : ' CRITICAL'
454
+ fail-build : true
455
+
456
+ - uses : goodwithtech/dockle-action@main
457
+ if : ${{ (matrix.os == 'ubuntu-latest') }}
458
+ with :
459
+ image : ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
460
+ format : ' list'
461
+ exit-code : ' 1'
462
+ exit-level : ' warn'
463
+ ignore : ' CIS-DI-0001,DKL-DI-0006'
464
+
444
465
- name : Anchore container scan
445
466
id : anchore-scan
446
467
@@ -450,7 +471,7 @@ jobs:
450
471
fail-build : true
451
472
severity-cutoff : critical
452
473
453
- - name : Upload Anchore scan SARIF report
474
+ - name : Upload scan SARIF report
454
475
uses : github/codeql-action/upload-sarif@v2
455
476
if : ${{ (matrix.os == 'ubuntu-latest') }}
456
477
with :
You can’t perform that action at this time.
0 commit comments