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 @@
-
+
+ {{- escapeXML ( index . 0 ).Target }}
+ | ||||||
{{ escapeXML .Target }}({{ escapeXML .Type }}) | ||||||
---|---|---|---|---|---|---|
{{ escapeXML .Target }} ({{ .Type | toString | escapeXML }}) | ||||||
No Vulnerabilities found | Links | {{- range .Vulnerabilities }} -|||||
{{ escapeXML .PkgName }} | {{ escapeXML .VulnerabilityID }} | -{{ escapeXML .Vulnerability.Severity }} | +{{ escapeXML .Severity }} | {{ escapeXML .InstalledVersion }} | {{ escapeXML .FixedVersion }} | {{ escapeXML .Title }} | @@ -145,6 +147,26 @@
No Secrets found | ||||||
Rule ID | +Severity | +Category | +Title | +Lines | +||
{{ escapeXML .RuleID }} | +{{ escapeXML .Severity }} | +{{ .Category | toString | escapeXML }} | +{{ escapeXML .Title }} | +{{ .StartLine | toString }} - {{ .EndLine | toString }} | +