feat(ci): Craft a trivy config to md parser

This commit is contained in:
kjeld Schouten-Lebbing
2021-12-04 22:59:49 +01:00
parent fb1da28904
commit d572ea1a7b
3 changed files with 23 additions and 3 deletions
+21
View File
@@ -0,0 +1,21 @@
{{- if . -}}
#### Chart Object: {{ escapeXML ( index . 0 ).Target }}
{{ range . }}
{{ if (eq (len .Misconfigurations) 0) }}
| No Misconfigurations found |
|:---------------------------------|
{{ else }}
| Type | Misconfiguration ID | Check | Severity | Explaination | Solution | Links |
|:----------------|:------------------:|:-----------:|:------------------:|:-------------:|-----------------------------------------|-----------------------------------------|
{{- range .Misconfigurations }}
| {{ escapeXML .Type }} | {{ escapeXML .ID }} | {{ escapeXML .Title }} | {{ escapeXML .Severity }} | {{ escapeXML .Description }} | {{ escapeXML .Message }} | <details><summary>Click to expand!</summary>{{ range .References }}<a href={{ escapeXML . | printf "%q" }}>{{ escapeXML . }}</a><br>{{ end }}</details> |
{{- end }}
{{- end }}
{{- end }}
{{- else }}
| No Misconfigurations found |
|:---------------------------------|
{{- end }}