feat(yocto): a target's build output joins the scan (#150) #853

Merged
sharang merged 2 commits from feat/yocto-build-output into main 2026-11-04 22:42:49 +00:00
2 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 1f0d9c17fd fix: build_output_paths before the test module (clippy)
CI / Check (push) Skipped
CI / Check (pull_request) Successful in 16m34s
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 3m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 23:25:53 +01:00
Sharang ParnerkarandClaude Opus 5.5 eb7d7423ad feat(yocto): a target's build output joins the scan (#150)
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 3m32s
CI / Check (pull_request) Failing after 6m13s
A target takes a new artifact kind, build_output: a Yocto image's SPDX
archive (<image>.spdx.tar.zst), read with pipeline::yocto_spdx (#852).
The scan joins what the build installed with the recipe inventory of
the layer tree (pipeline::yocto_build):

- by recipe name, since the tree's PV and the built version differ
  (busybox 1.35.0 in the layer, 1.36.1 built): the build's version, CPE,
  licence and InImageBasis::Built win, both evidence lines stay;
- an image the SPDX covers is authoritative: a recipe declared in it but
  not installed loses that marking; declarations for other images stay;
- recipes only the build lists are added;
- NVD is asked with the built version and CPE, one query per recipe;
- a CVE the build's patches fixed (create-spdx "CVEs fixed") is stated
  fixed; otherwise the recipe's CVE_STATUS applies, joined by name.

An archive that cannot be read, and packages listed without their
documents, are noted on the run (build_spdx; new informational
SkipCode::BuildPackagesUnresolved). The classifier takes an image SPDX
archive as Yocto evidence. The SBOM page's in-image tooltip now says
how the marking is known (declared in the recipes, or installed by the
build).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 23:18:19 +01:00