mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 00:39:30 +00:00
Pass Rancher's VEX report to Trivy to remove known false-positives CVEs (#10956)
Signed-off-by: Guilherme Macedo <guilherme@gmacedo.com>
This commit is contained in:
@@ -31,7 +31,11 @@ TRIVY_TEMPLATE='{{- $critical := 0 }}{{- $high := 0 }}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
Vulnerabilities - Critical: {{ $critical }}, High: {{ $high }}{{ println }}'
|
||||
VEX_REPORT="rancher.openvex.json"
|
||||
|
||||
trivy --quiet image --severity ${SEVERITIES} --no-progress --ignore-unfixed --format template --template "${TRIVY_TEMPLATE}" ${IMAGE}
|
||||
# Download Rancher's VEX Hub standalone report
|
||||
curl -fsS -o ${VEX_REPORT} https://raw.githubusercontent.com/rancher/vexhub/refs/heads/main/reports/rancher.openvex.json
|
||||
|
||||
trivy --quiet image --severity ${SEVERITIES} --vex ${VEX_REPORT} --no-progress --ignore-unfixed --format template --template "${TRIVY_TEMPLATE}" ${IMAGE}
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user