24 lines
1.0 KiB
Smarty
24 lines
1.0 KiB
Smarty
{{- if . -}}
|
|
#### Container: {{ escapeXML ( index . 0 ).Target }}
|
|
{{ range . }}
|
|
|
|
**{{ escapeXML .Type }}**
|
|
|
|
{{ if (eq (len .Vulnerabilities) 0) }}
|
|
| No Vulnerabilities found |
|
|
|:---------------------------------|
|
|
|
|
{{ else }}
|
|
| Package | Vulnerability | Severity | Installed Version | Fixed Version | Links |
|
|
|:----------------|:------------------:|:-----------:|:------------------:|:-------------:|-----------------------------------------|
|
|
{{- range .Vulnerabilities }}
|
|
| {{ escapeXML .PkgName }} | {{ escapeXML .VulnerabilityID }} | {{ escapeXML .Vulnerability.Severity }} | {{ escapeXML .InstalledVersion }} | {{ escapeXML .FixedVersion }} | <details><summary>Click to expand!</summary>{{ range .Vulnerability.References }}<a href={{ escapeXML . | printf "%q" }}>{{ escapeXML . }}</a><br>{{ end }}</details> |
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else }}
|
|
|
|
| No Vulnerabilities found |
|
|
|:---------------------------------|
|
|
{{- end }}
|