CSV Vulnerability Template - Need to sort on severity #9401
Unanswered
wagner-robert
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Here is a sample CSV Vulnerability template that works for me (there may be some typos). Any ideas on how to sort on severity?
"{{- escapeXML ( index . 0 ).Target }} - Trivy Report - {{ now }}"
{{- range . }}
{{- if . }}
"Package","Vulnerability ID","Severity","Installed Version","Fixed Version","Links"
{{- range .Vulnerabilities }}
"{{ escapeXML .PkgName }}","{{ excapeXML .VulnerabilityID }}","{{ escapeXML .Vulnerability.Severity }}","{{ escapeXML .InstalledVersion }}","{{ escapeXML .FixedVersion }}","{{- range .Vulnerability.References }} {{ escapeXML . }} {{- end}}"
{{- end }}
{{- end }}
{{- end }}
Target
Container Image
Scanner
Vulnerability
Beta Was this translation helpful? Give feedback.
All reactions