Skip to content

Commit 86c3453

Browse files
committed
Configure Trivy
1 parent 6ae2b1f commit 86c3453

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,13 @@ jobs:
4343
- name: Run Trivy vulnerability scanner
4444
uses: aquasecurity/trivy-action@master
4545
with:
46-
image-ref: ${{ env.IMAGE_NAME }}
46+
exit-code: '1'
4747
format: 'sarif'
48+
ignore-unfixed: true
49+
image-ref: ${{ env.IMAGE_NAME }}
4850
output: 'trivy-results.sarif'
49-
exit-code: '1'
5051
severity: 'MEDIUM,HIGH,CRITICAL'
52+
vuln-type: library
5153
- name: Upload Trivy scan results to GitHub Security tab
5254
uses: github/codeql-action/upload-sarif@v2
5355
if: always()

0 commit comments

Comments
 (0)