Skip to content

Commit 77a02d8

Browse files
committed
Try dockle & Trivy container scanner
Signed-off-by: Victor Chang <vicchang@nvidia.com>
1 parent 14b0b89 commit 77a02d8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,22 @@ jobs:
8888
labels: ${{ steps.meta.outputs.labels }}
8989
file: ${{ matrix.dockerfile }}
9090

91+
- uses: hands-lab/dockle-action@v1
92+
with:
93+
image: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
94+
95+
- name: Trivy Vulnerability Scanner
96+
uses: aquasecurity/trivy-action@master
97+
with:
98+
image-ref: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
99+
format: 'sarif'
100+
output: 'trivy-results.sarif'
101+
102+
- name: Upload Trivy scan results to GitHub Security tab
103+
uses: github/codeql-action/upload-sarif@v2
104+
with:
105+
sarif_file: 'trivy-results.sarif'
106+
91107
- name: Scan Image with Azure Container Scan
92108
uses: Azure/container-scan@v0.1
93109
if: always()

0 commit comments

Comments
 (0)