From b3a2f082e1d15222da697c62f80ebd5f5dc9c49f Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sun, 13 Sep 2026 00:42:46 +0200 Subject: [PATCH] fix(template): remove misconfigurations and secrets sections from markdown.tpl --- markdown.tpl | 36 ++---------------------------------- 1 file changed, 2 insertions(+), 34 deletions(-) diff --git a/markdown.tpl b/markdown.tpl index 45bab8e..f229108 100644 --- a/markdown.tpl +++ b/markdown.tpl @@ -14,10 +14,7 @@ {{- end }} {{- end }} -{{- $hasFindings := false }} - {{- if .Vulnerabilities }} -{{- $hasFindings = true }} #### Target: `{{ $targetName }}` (Vulnerabilities) | Severity | CVE | Package | Installed | Fixed In | Title | @@ -30,38 +27,9 @@ {{- end }} {{- end }} {{- end }} -{{- end }} - -{{- if .Misconfigurations }} -{{- $hasFindings = true }} -#### Target: `{{ $targetName }}` (Misconfigurations) - -| Severity | Rule ID | Title | Message | Resolution | -| :--- | :--- | :--- | :--- | :--- | -{{- $misconfs := .Misconfigurations }} -{{- range $sev := list "CRITICAL" "HIGH" "MEDIUM" "LOW" "UNKNOWN" }} -{{- range $m := $misconfs }} -{{- if eq $m.Severity $sev }} -| {{ if eq $m.Severity "CRITICAL" }}🔴 CRITICAL{{ else if eq $m.Severity "HIGH" }}🟠 HIGH{{ else if eq $m.Severity "MEDIUM" }}🟡 MEDIUM{{ else if eq $m.Severity "LOW" }}🔵 LOW{{ else }}⚪ {{ $m.Severity }}{{ end }} | [{{ $m.ID }}]({{ $m.PrimaryURL }}) | {{ $m.Title }} | {{ $m.Message }} | {{ default "-" $m.Resolution }} | -{{- end }} -{{- end }} -{{- end }} -{{- end }} - -{{- if .Secrets }} -{{- $hasFindings = true }} -#### Target: `{{ $targetName }}` (Secrets) - -| Severity | Rule ID | Title | Lines | -| :--- | :--- | :--- | :--- | -{{- range .Secrets }} -| {{ if eq .Severity "CRITICAL" }}🔴 CRITICAL{{ else if eq .Severity "HIGH" }}🟠 HIGH{{ else if eq .Severity "MEDIUM" }}🟡 MEDIUM{{ else if eq .Severity "LOW" }}🔵 LOW{{ else }}⚪ {{ .Severity }}{{ end }} | {{ .RuleID }} | {{ .Title }} | L{{ .StartLine }}-L{{ .EndLine }} | -{{- end }} -{{- end }} - -{{- if not $hasFindings }} +{{- else }} #### Target: `{{ $targetName }}` -✅ No security issues found. +✅ No vulnerabilities found. {{- end }} {{- end }} -- 2.54.0