mirror of
https://github.com/genuinetools/reg.git
synced 2024-07-04 12:34:17 -04:00
f504f1306f
Signed-off-by: Jess Frazelle <acidburn@google.com>
20 lines
619 B
Plaintext
20 lines
619 B
Plaintext
{{define "vulns"}}CVE Report for {{.Repo}}:{{.Tag}}
|
|
Generated on: {{.Date}}
|
|
|
|
Vulnerabilities Found: {{len .Vulns}}
|
|
|
|
{{range $key, $value := .VulnsBySeverity}}
|
|
{{$key}}: {{len $value}}
|
|
{{end}}
|
|
|
|
{{if gt .BadVulns 10}}
|
|
------------------------------------ ALERT ------------------------------------
|
|
{{.BadVulns}} High, Critical, and/or Defcon1 vulnerabilities found
|
|
{{end}}
|
|
|
|
{{range $vulns := .VulnsBySeverity}}{{range $value := $vulns}}{{$value.Name}}: [{{$value.Severity}}]
|
|
{{trim $value.Description}}
|
|
{{$value.Link}}
|
|
-------------------------------------------------------------------------------
|
|
{{end}}{{end}}{{end}}
|