Public Access
generated from Philipp/template-git
Philipp/Global-Workflows: Pre-commit Lint (Scoped) / pre-commit (pull_request) Successful in 33s
36 lines
1.2 KiB
Smarty
36 lines
1.2 KiB
Smarty
### 🛡️ Security Scan Report
|
|
|
|
{{- range . }}
|
|
{{- $targetName := .Target }}
|
|
{{- if eq $targetName "" }}
|
|
{{- if eq .Type "gobinary" }}
|
|
{{- $targetName = "Go binary" }}
|
|
{{- else if .Type }}
|
|
{{- $targetName = .Type }}
|
|
{{- else if .Class }}
|
|
{{- $targetName = .Class }}
|
|
{{- else }}
|
|
{{- $targetName = "Application / Package" }}
|
|
{{- end }}
|
|
{{- end }}
|
|
|
|
{{- if .Vulnerabilities }}
|
|
#### Target: `{{ $targetName }}` (Vulnerabilities)
|
|
|
|
| Severity | CVE | Package | Installed | Fixed In | Title |
|
|
| :--- | :--- | :--- | :--- | :--- | :--- |
|
|
{{- $vulns := .Vulnerabilities }}
|
|
{{- range $sev := list "CRITICAL" "HIGH" "MEDIUM" "LOW" "UNKNOWN" }}
|
|
{{- range $vuln := $vulns }}
|
|
{{- if eq $vuln.Severity $sev }}
|
|
| {{ if eq $vuln.Severity "CRITICAL" }}🔴 CRITICAL{{ else if eq $vuln.Severity "HIGH" }}🟠 HIGH{{ else if eq $vuln.Severity "MEDIUM" }}🟡 MEDIUM{{ else if eq $vuln.Severity "LOW" }}🔵 LOW{{ else }}⚪ {{ $vuln.Severity }}{{ end }} | [{{ $vuln.VulnerabilityID }}]({{ $vuln.PrimaryURL }}) | `{{ $vuln.PkgName }}` | {{ $vuln.InstalledVersion }} | {{ default "-" $vuln.FixedVersion }} | {{ $vuln.Title }} |
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- else }}
|
|
#### Target: `{{ $targetName }}`
|
|
✅ No vulnerabilities found.
|
|
{{- end }}
|
|
|
|
{{- end }}
|