Revert "ci: update trivy syntax"

This reverts commit 72a1779fc7.

Doesn't work
This commit is contained in:
perennial
2024-09-14 14:02:06 +10:00
parent 72a1779fc7
commit ce58fd0c87
+5 -9
View File
@@ -1,13 +1,9 @@
# -- Plugin to find vulnerabilities, misconfigurations, secrets, SBOM and more.
# ref: https://woodpecker-ci.org/plugins/Trivy
steps:
pipeline:
trivy:
image: aquasec/trivy:latest
settings:
exit-code: 1
skip-dirs: doc/
dir: .
severity: MEDIUM,HIGH,CRITICAL
when:
- event: [ push, tag, release, manual ]
branch: [ v2 ]
commands:
# use any trivy command, if exit code is 0 woodpecker marks it as passed, else it assumes it failed
- trivy fs --exit-code 1 --skip-dirs doc/ --severity MEDIUM,HIGH,CRITICAL .