{{ define "main" }} {{ $sc := site.Data.gen.showcase }} {{ $id := .Params.example }} {{ $ex := index (where $sc.examples "id" $id) 0 }} {{ $all := $sc.examples }} {{ $pos := 0 }}{{ range $i, $e := $all }}{{ if eq $e.id $id }}{{ $pos = $i }}{{ end }}{{ end }}
Example {{ add $pos 1 }} of {{ len $all }} · real output · sbomlyze {{ $sc.tag }}

{{ $ex.title }}

{{ $ex.finding }}

{{ range $ex.tags }}{{ . }}{{ end }} {{ range $ex.features }}{{ . }}{{ end }}

What happened

{{ $ex.story | markdownify }}
What this does not prove. {{ $ex.not_proven }}
{{ range $ex.media }}{{ if fileExists (printf "static/examples/media/%s" .url) }}
{{ .label }}
{{ .label }}
{{ end }}{{ end }}

Inputs

Generated once with Syft 1.56.0, linux/amd64, and kept unchanged in {{ $sc.inputs_dir }} in the repository. Every sbomlyze release re-runs the commands below on these exact files.

{{ range $ex.inputs }}
{{ .label }}
{{ with .note }}# {{ . }}
{{ end }}{{ range .files }}{{ .command }}
{{ end }}
{{ range .files }}{{ .file }} {{ substr .sha256 0 12 }}…   {{ end }}
{{ end }} {{ with $ex.policies }}

Policy files: {{ range $name, $path := . }}{{ path.Base $path }} {{ end }}

{{ end }}

Output

{{ range $ex.runs }}

{{ .title }}

$ {{ .command }} · exit {{ .exit }}
{{ with .summary }}{{ . }}{{ else }}{{ .text }}{{ end }}
{{ if .summary }}
Full text output ({{ len (split .text "\n") }} lines)
{{ .text }}
{{ end }}

{{ range $i, $o := .outputs }}{{ if $i }} · {{ end }}{{ $o.format }} ({{ math.Ceil (div (float $o.size) 1024) }} KB){{ end }} {{ range .outputs }}{{ if eq .format "html" }} · open the HTML report{{ end }}{{ end }}

{{ with .changed_since }}
Changed since the previous release
{{ . }}
{{ end }} {{ end }}

Checked at every release

The site is not updated if any of these stop holding for a new sbomlyze release.

{{ range $ex.checks }} {{ end }}
RunCheck
{{ .run }}{{ with .contains }}text contains “{{ . }}”{{ else }}{{ .path }} {{ with .count }}count = {{ . }}{{ else }}= {{ jsonify .equals }}{{ end }}{{ end }}

Sources

{{ with $ex.evidence }}

Evidence

Captured when the inputs were made and kept with them; the checks above use these files.

{{ end }}
{{ if gt $pos 0 }}{{ $p := index $all (sub $pos 1) }}← {{ $p.title }}{{ else }}{{ end }} All examples {{ if lt (add $pos 1) (len $all) }}{{ $n := index $all (add $pos 1) }}{{ $n.title }} →{{ end }}
{{ partial "showcase-stale.html" $sc }} {{ end }}