From f0c3d099cbff50b723f111101c2a14f182c4f503 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 5 Nov 2026 00:01:29 +0100 Subject: [PATCH 1/2] test(nightly): a Yocto layer with its build's SPDX and cve-check (#150) Co-Authored-By: Claude Opus 5.5 --- fixtures/nightly/targets.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/fixtures/nightly/targets.json b/fixtures/nightly/targets.json index 82c0f66..ae94532 100644 --- a/fixtures/nightly/targets.json +++ b/fixtures/nightly/targets.json @@ -280,6 +280,32 @@ } } }, + { + "key": "fw-yocto-built", + "name": "Firmware · Yocto layer with build output", + "target_type": "embedded_linux_yocto", + "description": "The Yocto layer of fw-yocto-layer plus what a build wrote about its image: a trimmed scarthgap 5.0.21 core-image-minimal SPDX archive (create-spdx) and its cve-check report. The build's components join the recipe inventory by recipe name (busybox 1.35.0 in the layer, 1.36.1 built), marked as installed by the build; recipes only the build lists (openssl, base-files, the package group) are added; CVEs the build's patches fixed and Yocto's own Patched/Ignored verdicts become VEX statements; CVEs cve-check found unpatched are alerts; one package of the image without its document is noted.", + "artifacts": [ + { + "kind": "source_archive", + "upload": "fixtures/nightly/firmware/yocto-layer" + }, + { + "kind": "build_output", + "upload": "fixtures/yocto/core-image-minimal-qemuarm64.rootfs.spdx.tar.zst" + }, + { + "kind": "build_output", + "upload": "fixtures/yocto/core-image-minimal-qemuarm64.rootfs.cve.json" + } + ], + "expect": { + "detected_facts": { + "build_system": "bitbake", + "yocto_layer": "." + } + } + }, { "key": "fw-zephyr-example-pinned", "name": "Firmware · Zephyr example-application (pinned source)", -- 2.54.1 From c2b2f59dea855235a61533d173e793d2a5017ad7 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Thu, 5 Nov 2026 00:17:59 +0100 Subject: [PATCH 2/2] test(nightly): bless fw-yocto-built from run 9702 (stage c2fbffd) Co-Authored-By: Claude Opus 5.5 --- .../nightly/baselines/fw-yocto-built.json | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 fixtures/nightly/baselines/fw-yocto-built.json diff --git a/fixtures/nightly/baselines/fw-yocto-built.json b/fixtures/nightly/baselines/fw-yocto-built.json new file mode 100644 index 0000000..cae0be8 --- /dev/null +++ b/fixtures/nightly/baselines/fw-yocto-built.json @@ -0,0 +1,53 @@ +{ + "scan_status": "completed", + "skipped_stages": [ + "firmware_sbom", + "malware" + ], + "notes": [ + "build_spdx", + "image_install" + ], + "sbom": [ + "yocto-recipe:base-files@3.0.14 [in image: core-image-minimal]", + "yocto-recipe:busybox@1.36.1 [in image: core-image-minimal]", + "yocto-recipe:libmodbus@3.1.6 [in image: pump-image]", + "yocto-recipe:openssl@3.5.9 [in image: core-image-minimal]", + "yocto-recipe:packagegroup-core-boot@1.0 [in image: core-image-minimal]", + "yocto-recipe:pump-ctl@1.0 [in image: pump-image]", + "yocto-recipe:pump-fw@1.0", + "yocto-recipe:pump-web@2.1 [in image: pump-image]" + ], + "findings": [ + "oelint-adv:oelint.task.network pump-web_2.1.bb:8", + "oelint-adv:oelint.var.badimagefeature.allow-empty-password pump-image.bb:7", + "oelint-adv:oelint.var.badimagefeature.debug-tweaks pump-image.bb:8", + "oelint-adv:oelint.vars.autorev pump-fw_git.bb:6", + "oelint-adv:oelint.vars.srcurichecksum pump-web_2.1.bb:6", + "yocto-config:yocto-distro-no-security-flags pump-distro.conf:1", + "yocto-config:yocto-extrausers-password pump-image.bb:13", + "yocto-config:yocto-src-uri-http pump-web_2.1.bb:6", + "yocto-config:yocto-sshd-root-login sshd_config:3" + ], + "cves": [ + "CVE-2022-0367", + "CVE-2022-48174", + "CVE-2023-42363", + "CVE-2023-42364", + "CVE-2023-42365", + "CVE-2023-42366", + "CVE-2024-36843", + "CVE-2024-36844", + "CVE-2024-36845", + "CVE-2025-46394", + "CVE-2025-60876", + "license-review-pending", + "yocto-release-eol" + ], + "layer_pins": [ + "git_submodule meta-security dunfell@-", + "kas meta-openembedded dunfell@-", + "kas poky dunfell@0b1f2c3d4e5f60718293a4b5c6d7e8f901234567" + ], + "yocto_release": "dunfell" +} -- 2.54.1