Skip to content

Commit

Permalink
ci: Add trivy scan to docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
NoUseFreak committed Feb 9, 2023
1 parent 33b99d3 commit c32920c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ jobs:
with:
push: false
tags: 'ledger:${{ github.sha }}'
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'ledger:${{ github.sha }}'
format: 'sarif'
output: 'trivy-results.sarif'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
Expand Down

0 comments on commit c32920c

Please sign in to comment.