{{ if isOSResult .Type }} {{ else }} {{ end }} {{ $showLicense := false }} {{ if gt .LicenseViolationsCount 0 }} {{ $showLicense = true }} {{ end }} {{ range $rowIndex, $element := .Packages }} {{ $index := uniqueID }} {{ $isUncalled := false }} {{ if eq $element.VulnCount.AnalysisCount.Regular 0 }} {{ $isUncalled = true }} {{ end }} {{ $hasLicenseViolations := false }} {{ if gt (len .LicenseViolations) 0 }} {{ $hasLicenseViolations = true }} {{ end }} {{ if not $isUncalled }} {{ else }} {{ end }} {{ if $showLicense }} {{ if $hasLicenseViolations}} {{ else }} {{ end }} {{ end }} {{ end }}
Source PackagePackageInstalled version

Fix available

Fix available indicates whether a patch or update exists to address the vulnerabilities found in the corresponding package.

Vulnerability count

Vulnerability count shows the number of vulnerabilities found in the package, counted by each severity level.
License violations
play_arrow
{{ $element.Name }} {{ if ne $element.InstalledVersion "" }} {{ $element.InstalledVersion }} {{ else if ne $element.Commit "" }}
@{{ GetShortCommit $element.Commit }}
Commit: {{ $element.Commit }}
{{ end }}
{{ if ne $element.VulnCount.FixableCount.UnFixed 0 }} {{ if eq $element.VulnCount.FixableCount.Fixed 0}}

No fix available

All {{ $element.VulnCount.AnalysisCount.Regular }} vulnerabilities have no fixed version available. {{ else }}

Partial fixes available

Upgrading the package can fix {{ $element.VulnCount.FixableCount.Fixed }} out of {{ $element.VulnCount.AnalysisCount.Regular }} vulnerabilities. {{ end }} {{ else }}

Fix available

Upgrading the package can fix all {{ $element.VulnCount.FixableCount.Fixed }} vulnerabilities. {{ end }}
{{ template "severity_summary_template.gohtml" $element.VulnCount.SeverityCount }}

Filtered out

{{ getFilteredVulnReasons $element.HiddenVulns }}

{{ formatLicense .LicenseViolations }} --
{{ $binaries := formatSlice $element.OSPackageNames }} {{ if not (eq $binaries "") }}

Installed binaries: {{ $binaries }}

{{ end }} {{ if and $element.LayerDetail.LayerInfo.LayerMetadata (not (eq $element.LayerDetail.LayerInfo.LayerMetadata.Command "")) }} {{ $index := $element.LayerDetail.LayerIndex }} {{ $diffID := $element.LayerDetail.LayerInfo.LayerMetadata.DiffID }} {{ $baseImageIndex := $element.LayerDetail.LayerInfo.LayerMetadata.BaseImageIndex }} {{ $originalCommand := $element.LayerDetail.LayerInfo.LayerMetadata.Command }} {{ $commandSet := formatLayerCommand $originalCommand }} {{ $command := index $commandSet 0 }} {{ $commandDetail := index $commandSet 1 }} {{ $longCommand := false }} {{ if gt (len $command) 109 }} {{ $longCommand = true }} {{ end }}
{{ if $longCommand }}

Introduced in layer # {{ $index }}: 

{{ $command }}

{{ $originalCommand }}
{{ else if ne $commandDetail "" }}

Introduced in layer # {{ $index }}: 

{{ $command }}

{{ $commandDetail }}
{{ else }}

Introduced in layer # {{ $index }}: 

{{ $command }}

{{ end }}

In base image: {{ if eq $baseImageIndex 0 }} False {{ else }} {{ getBaseImageName $element.LayerDetail.BaseImageInfo }}{{ end }}

{{ end }} {{ template "vuln_table_template.gohtml" $element }}