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>