Fail trivy on critical, high issues
This commit is contained in:
parent
98b2d6495c
commit
ef33268973
1 changed files with 2 additions and 0 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -64,12 +64,14 @@ jobs:
|
|||
image-ref: ${{ github.repository }}:${{ github.run_id }}
|
||||
exit-code: '1'
|
||||
skip-files: '/etc/ssl/certs/vsftpd.pem'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
||||
- name: Run Trivy vulnerability scanner.
|
||||
uses: aquasecurity/trivy-action@master
|
||||
with:
|
||||
image-ref: ${{ github.repository }}:nossl
|
||||
exit-code: '1'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
||||
deploy:
|
||||
if: startsWith(github.ref, 'refs/tags/v')
|
||||
|
|
Loading…
Reference in a new issue