Skip to content

Commit c39114f

Browse files
committed
add trivy and dockle scanning
Signed-off-by: Neil South <[email protected]>
1 parent 9b600cb commit c39114f

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,27 @@ jobs:
441441
with:
442442
image-name: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
443443

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+
444465
- name: Anchore container scan
445466
id: anchore-scan
446467
uses: anchore/[email protected]
@@ -450,7 +471,7 @@ jobs:
450471
fail-build: true
451472
severity-cutoff: critical
452473

453-
- name: Upload Anchore scan SARIF report
474+
- name: Upload scan SARIF report
454475
uses: github/codeql-action/upload-sarif@v2
455476
if: ${{ (matrix.os == 'ubuntu-latest') }}
456477
with:

0 commit comments

Comments
 (0)