Files
pruefwerk/fixtures/yocto
Sharang ParnerkarandClaude Opus 5.5 b8e85842ec
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 4m42s
CI / Check (pull_request) Successful in 16m19s
feat(yocto): read the build's SPDX 3.0 image document (#150)
With create-spdx-3.0 (the default from Styhead 5.1, available in
Scarthgap) a build writes one JSON-LD document per image,
<image>.spdx.json. pipeline::yocto_spdx3 reads it into the same
BuiltImage as the SPDX 2.2 reader (#852):

- the image is the archive package output by the rootfs build; its
  installed packages are that build's inputs (hasInput);
- each package's recipe is the build <recipe>:do_create_spdx:recipe that
  outputs it; version, CPE and homepage come from the package, the
  licence through hasConcludedLicense;
- the build's VEX: fixedIn becomes the fixed list, doesNotAffect a new
  not_affected list with its justification and impact statement.

Built takes the not-affected statements after Yocto's cve-check verdict
and before the fixed list and the recipes. The scan recognises an SPDX
3 document among the build outputs by its @context. The 2.2 reader's
component construction is shared (yocto_spdx::component).

The fixture is a trimmed copy of a real Scarthgap 5.0.21
core-image-minimal (qemuarm64) built with create-spdx-3.0: six recipes,
their licences and VEX, and one installed package without its element.
guide/yocto: what to upload for SPDX 3.0; tier 2 is done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 01:13:42 +01:00
..