diff --git a/server/templates/vulns.txt b/server/templates/vulns.txt index 6e7b6196..5e402ec5 100644 --- a/server/templates/vulns.txt +++ b/server/templates/vulns.txt @@ -3,15 +3,13 @@ Generated on: {{.Date}} Vulnerabilities Found: {{len .Vulns}} -{{range $key, $value := .VulnsBySeverity}} -{{$key}}: {{len $value}} +{{range $key, $value := .VulnsBySeverity}}{{$key}}: {{len $value}} {{end}} -{{if gt .BadVulns 10}} ------------------------------------- ALERT ------------------------------------ +{{if gt .BadVulns 10}}------------------------------------ ALERT ------------------------------------ {{.BadVulns}} High, Critical, and/or Defcon1 vulnerabilities found -{{end}} +{{end}} {{range $vulns := .VulnsBySeverity}}{{range $value := $vulns}}{{$value.Name}}: [{{$value.Severity}}] {{trim $value.Description}} {{$value.Link}}