{{- range . -}} {{- $failures := len .Vulnerabilities }} {{- if not (eq .Type "") }} {{- end -}} {{ range .Vulnerabilities }} <{{ if not .FixedVersion -}}passed{{- else if (eq .Vulnerability.Severity "CRITICAL") -}}failure{{- else if (eq .Vulnerability.Severity "HIGH") -}}error{{- else -}}skipped{{- end }} message="{{ escapeXML .Title }}" type="description">Upgrade {{ .PkgName }} to {{ .FixedVersion }} - {{ escapeXML .Description }} {{- end }} {{- $failures := len .Misconfigurations }} {{- if not (eq .Type "") }} {{- end -}} {{ range .Misconfigurations }} {{ escapeXML .Description }} {{- end }} {{- end }}