extend trivy output

This commit is contained in:
OCram85 2022-03-16 16:42:06 +01:00
parent edfc051e9c
commit 9e460a199a

View File

@ -57,7 +57,17 @@ steps:
- name: "Trivy (next)" - name: "Trivy (next)"
image: aquasec/trivy image: aquasec/trivy
commands: commands:
- "trivy image --exit-code 1 --no-progress ocram85/blog:next" - |
trivy image \
--severity UNKNOWN,LOW,MEDIUM \
--no-progress \
ocram85/blog:next
- |
trivy image \
--exit-code 1 \
--severity HIGH,CRITICAL \
--no-progress \
ocram85/blog:next
- name: "Trigger Service Update" - name: "Trigger Service Update"
image: ocram85/portainer-serviceupdate image: ocram85/portainer-serviceupdate
@ -104,7 +114,17 @@ steps:
- name: "Trivy (latest)" - name: "Trivy (latest)"
image: aquasec/trivy image: aquasec/trivy
commands: commands:
- "trivy image --exit-code 1 --no-progress ocram85/blog:latest" - |
trivy image \
--severity UNKNOWN,LOW,MEDIUM \
--no-progress \
ocram85/blog:latest
- |
trivy image \
--exit-code 1 \
--severity HIGH,CRITICAL \
--no-progress \
ocram85/blog:latest
- name: "Trigger Service Update" - name: "Trigger Service Update"
image: ocram85/portainer-serviceupdate image: ocram85/portainer-serviceupdate