feat(yocto): Yocto's own cve-check verdicts join the scan (#150) #854

Merged
sharang merged 1 commits from feat/yocto-cve-check into main 2026-11-04 23:00:08 +00:00
1 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 009ad2042a feat(yocto): Yocto's own cve-check verdicts join 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 4m26s
CI / Check (pull_request) Successful in 16m38s
With INHERIT += "cve-check" a build writes <image>.json next to the
image: per recipe the CVEs NVD records for it, each Patched, Ignored
(with the CVE_STATUS reason) or Unpatched. It is uploaded as a build
output like the image SPDX; the scan tells the two apart by content.

- pipeline::yocto_cve_check reads the report (size-capped).
- Built takes the reports: Yocto's verdict on an alert's CVE comes
  first (Patched is fixed, Ignored as the reason maps, the same table as
  the recipes' CVE_STATUS; the note is kept), then the SPDX's fixed
  list, then the recipe in the tree.
- CVEs cve-check found unpatched that the NVD match missed are added as
  alerts on the scan's recipe components, with NVD's description and
  score from the report.

The fixture is a trimmed copy of a real scarthgap 5.0.21 report for
core-image-minimal (glibc, busybox and zlib with every status).

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