Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Verified Commit 533fdb8c authored by Benoît's avatar Benoît
Browse files

Add Trivy template for Markdown

parent de088d97
No related branches found
No related tags found
1 merge request!1Resolve "Add trivy-markdown template"
Pipeline #22923 passed
......@@ -6,4 +6,4 @@ COPY ./install_tools.sh /usr/local/bin/install_tools.sh
RUN /usr/local/bin/install_tools.sh
COPY ./trivy-markdown.tpl /usr/local/share/trivy/templates/trivy-markdown.tpl
\ No newline at end of file
COPY ./trivy-markdown*.tpl /usr/local/share/trivy/templates/
\ No newline at end of file
{ "body": "{{- if . }}{{- range . }}## Target `{{ escapeXML .Target }}`\n{{- if (eq (len .Vulnerabilities) 0) }}\n### No Vulnerabilities found\n{{- else }}\n### Vulnerabilities ({{ len .Vulnerabilities }})\n| Package | ID | Severity | Installed Version | Fixed Version | Title |\n| -------- | ---- | -------- | ---------------- | ------------ | ---- |{{- range .Vulnerabilities }}\n| `{{ escapeXML .PkgName }}` | [{{ escapeXML .VulnerabilityID }}]({{ escapeXML .PrimaryURL }}) | {{ escapeXML .Severity }} {{- if eq .Severity "HIGH" }}⚠{{- end }}{{- if eq .Severity "CRITICAL" }}🚫{{- end }} | {{ escapeXML .InstalledVersion }} | {{ escapeXML .FixedVersion }} | {{ escapeXML .Title }} |\n{{- end }}{{- end }}{{- end }}{{- else }}\n## Trivy Returned Empty Report\n{{- end }}" }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment