Skip to content

Commit

Permalink
Try dockle & Trivy container scanner
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Chang <[email protected]>
  • Loading branch information
mocsharp committed Oct 20, 2022
1 parent 14b0b89 commit 77a02d8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
file: ${{ matrix.dockerfile }}

- uses: hands-lab/dockle-action@v1
with:
image: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}

- name: Trivy Vulnerability Scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ fromJSON(steps.meta.outputs.json).tags[0] }}
format: 'sarif'
output: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

- name: Scan Image with Azure Container Scan
uses: Azure/[email protected]
if: always()
Expand Down

0 comments on commit 77a02d8

Please sign in to comment.