{{- range . -}} {{- $failures := len .Vulnerabilities }} {{- if not (eq .Type "") }} {{- end -}} {{ range .Vulnerabilities }} {{ escapeXML .Description }} {{- end }} {{- $target := .Target }} {{- if .MisconfSummary }} {{- else }} {{- end }} {{- if not (eq .Type "") }} {{- end -}} {{ range .Misconfigurations }} {{- if (eq .Status "FAIL") }} {{- $target }}: {{- with .CauseMetadata }} {{- .StartLine }} {{- if lt .StartLine .EndLine }}:{{ .EndLine }}{{ end }}: Occurrences: {{- range $i := .Occurrences -}} via {{ .Filename }}: {{- .Location.StartLine }} {{- if lt .Location.StartLine .Location.EndLine }}:{{ .Location.EndLine }}{{ end }} ({{ .Resource }}) {{- end -}} Code: {{- range .Code.Lines }} {{- if .IsCause }}{{ escapeXML .Content }} {{- end }} {{- end }} {{- end }} {{- escapeXML .Description }} {{- end }} {{- end }} {{- if .Licenses }} {{- $licenses := len .Licenses }} {{ range .Licenses }} {{- end }} {{- end }} {{- if .Secrets }} {{- $secrets := len .Secrets }} {{ range .Secrets }} {{ escapeXML .Match }} {{- end }} {{- end }} {{- end }}