{{ define "vuln-badge" }} {{ if .Error }} {{/* Hold unreachable. Warning color distinguishes from "not scanned" (gray). */}} {{ icon "wifi-off" "size-3" }} Hold offline {{ else if .NotScanned }} Not scanned {{ else if .Skipped }} {{/* Artifact is intentionally not scanned (helm chart, in-toto, DSSE). Render an empty span — the artifact-type badge already tells the user this isn't a container image, so a separate "not scannable" pill is redundant noise on listings. */}} {{ else if .ScanFailed }} {{ icon "alert-triangle" "size-3" }} Scan failed {{ else if eq .Total 0 }} {{ icon "shield-check" "size-3" }} Clean {{ else }} {{ .Critical }} {{ .High }} {{ .Medium }} {{ .Low }} {{ end }} {{ end }}