{{ define "diff-content" }}
| Change | # | Command | Size |
|---|---|---|---|
| {{/* Glyph + sr-only label: color is redundant information. */}}{{ if eq .Status "added" }}Added{{ else if eq .Status "removed" }}Removed{{ else if eq .Status "rebuilt" }}Rebuilt{{ else }}Unchanged{{ end }} | {{ .Layer.Index }} |
{{ if .Layer.Command }}
{{ .Layer.Command }}
{{ end }}
|
{{ if not .Layer.EmptyLayer }}{{ humanizeBytes .Layer.Size }}{{ end }} {{ if and (eq .Status "rebuilt") .PrevLayer }} {{ if ne .Layer.Size .PrevLayer.Size }} ({{ humanizeByteDelta (sub64 .Layer.Size .PrevLayer.Size) }}) {{ end }} {{ end }} |
Neither manifest has been scanned yet. Vulnerability comparison will appear after both scans complete.
{{ else }}Vulnerability scan data isn't available for both manifests.
{{ end }} {{ else }} {{ if .FixedVulns }}| CVE | Severity | Package | Was |
|---|---|---|---|
| {{ if .CVEURL }}{{ or .CVEID "—" }} {{ else }}{{ or .CVEID "—" }}{{ end }} | {{ severityLabel .Severity }} | {{ .Package }} | {{ .Version }} |
| CVE | Severity | Package | Version | Fix |
|---|---|---|---|---|
| {{ if .CVEURL }}{{ or .CVEID "—" }} {{ else }}{{ or .CVEID "—" }}{{ end }} | {{ severityLabel .Severity }} | {{ .Package }} | {{ .Version }} | {{ .FixedIn }} |
| CVE | Severity | Package | Version | Fix |
|---|---|---|---|---|
| {{ if .CVEURL }}{{ or .CVEID "—" }} {{ else }}{{ or .CVEID "—" }}{{ end }} | {{ severityLabel .Severity }} | {{ .Package }} | {{ .Version }} | {{ .FixedIn }} |
No vulnerabilities found in either manifest
{{ end }} {{ end }}