Fail on trivy fail
This commit is contained in:
parent
e106459fb7
commit
7e3cf72dc4
1 changed files with 2 additions and 2 deletions
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -71,8 +71,8 @@ jobs:
|
||||||
|
|
||||||
- name: Run trivy.
|
- name: Run trivy.
|
||||||
run: |
|
run: |
|
||||||
trivy image ${GITHUB_REPOSITORY}:${GITHUB_RUN_ID}
|
trivy image --exit-code 1 ${GITHUB_REPOSITORY}:${GITHUB_RUN_ID}
|
||||||
trivy image ${GITHUB_REPOSITORY}:nossl
|
trivy image --exit-code 1 ${GITHUB_REPOSITORY}:nossl
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
|
|
Loading…
Reference in a new issue