Fail on trivy fail

This commit is contained in:
Amin Vakil 2021-03-07 15:32:03 +03:30
parent e106459fb7
commit 7e3cf72dc4
No known key found for this signature in database
GPG key ID: 1EFC1864E9D9E56B

View file

@ -71,8 +71,8 @@ jobs:
- name: Run trivy.
run: |
trivy image ${GITHUB_REPOSITORY}:${GITHUB_RUN_ID}
trivy image ${GITHUB_REPOSITORY}:nossl
trivy image --exit-code 1 ${GITHUB_REPOSITORY}:${GITHUB_RUN_ID}
trivy image --exit-code 1 ${GITHUB_REPOSITORY}:nossl
deploy:
if: ${{ github.ref == 'refs/heads/master' }}