diff --git a/Dockerfile b/Dockerfile index 7ce7089..4a39965 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,6 @@ RUN sed -i -e 's/exec \$JAVA_BIN/podman system service -t0\&\n exec \$JAV ENV XDG_RUNTIME_DIR=/home/$BUILDUSER/agent/xdg-run ENV BUILDAH_ISOLATION=chroot ENV _CONTAINERS_USERNS_CONFIGURED="" -ENV TRIVY_TEMPLATE="@/home/jenkins/html.tpl" ENV HOME=/home/$BUILDUSER USER $BUILDUSER diff --git a/html.tpl b/html.tpl index 6209333..b9ab283 100644 --- a/html.tpl +++ b/html.tpl @@ -83,11 +83,13 @@ -

- Trivy Report - {{ now | date "2006-01-02 15:04:05 -0700" }}

+ {{- range . }} - + {{- if (eq (len .Vulnerabilities) 0) }} {{- else }} @@ -101,10 +103,10 @@ {{- range .Vulnerabilities }} - + - + @@ -145,6 +147,26 @@ {{- end }} {{- end }} + {{- if (eq (len .Secrets) 0) }} + + {{- else }} + + + + + + + + {{- range .Secrets }} + + + + + + + + {{- end }} + {{- end }} {{- end }}
+

+ {{- escapeXML ( index . 0 ).Target }}
Trivy Report - {{ now | date "2006-01-02 15:04:05 -0700" }}

+
{{ escapeXML .Target }}({{ escapeXML .Type }})
{{ escapeXML .Target }} ({{ .Type | toString | escapeXML }})
No Vulnerabilities found
Links
{{ escapeXML .PkgName }} {{ escapeXML .VulnerabilityID }}{{ escapeXML .Vulnerability.Severity }}{{ escapeXML .Severity }} {{ escapeXML .InstalledVersion }} {{ escapeXML .FixedVersion }} {{ escapeXML .Title }}
No Secrets found
Rule IDSeverityCategoryTitleLines
{{ escapeXML .RuleID }}{{ escapeXML .Severity }}{{ .Category | toString | escapeXML }}{{ escapeXML .Title }}{{ .StartLine | toString }} - {{ .EndLine | toString }}
{{- else }}