{{- range . -}} {{- $failures := len .Vulnerabilities }} {{- if not (eq .Type "") }} {{- end -}} {{ range .Vulnerabilities }} <{{ if .FixedVersion -}}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 }}