From a1650735217a407195d674a262eff92ae7b8ea10 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Mon, 15 Jul 2024 13:04:42 +0000 Subject: [PATCH] feat: sunc contrib templates for Trivy from 0.53 release --- junit.tpl | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/junit.tpl b/junit.tpl index 0a2d7ee..08e649b 100644 --- a/junit.tpl +++ b/junit.tpl @@ -14,8 +14,12 @@ {{- end }} -{{- $failures := len .Misconfigurations }} - + +{{- if .MisconfSummary }} + +{{- else }} + +{{- end }} {{- if not (eq .Type "") }} @@ -23,7 +27,9 @@ {{- end -}} {{ range .Misconfigurations }} + {{- if (eq .Status "FAIL") }} {{ escapeXML .Description }} + {{- end }} {{- end }}