Files
pruefwerk/fixtures/nightly/firmware
Sharang ParnerkarandClaude Opus 5.5 3d6d4745ba
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 / Check (pull_request) Successful in 27m21s
fix(firmware): produce the firmware SBOM when detection finds firmware (#338)
The firmware SBOM only ran when the target type picked at onboarding was
a firmware type. An STM32 project onboarded as "backend service" got no
firmware SBOM, although classification recognised its build system.

It now also runs when the classification suggests a firmware type. The
nightly onboards the Make firmware fixture as a backend service
(fw-make-onboarded-as-service) and gets the same SBOM as fw-make.

Also moves a doc comment in firmware_sbom.rs back onto its function, and
merges the two doc comments on classify_and_store.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
2026-09-23 15:08:17 +02:00
..

Firmware fixtures for the nightly scan regression (#313)

Each directory is uploaded as a source archive (the harness zips it) and exercises one Firmwerk build-system provider. Most are copied from Firmwerk's own provider tests (crates/firmwerk-core/tests/fixtures, Firmwerk v0.4.2), extended with the manifests a real project carries (marked "+"), which the SBOM reads as declared dependencies (#317):

Directory Firmwerk fixture Provider
make make Make
cmake cmake CMake with a toolchain file
arduino arduino Arduino (sketch.yaml)
platformio platformio-real PlatformIO (pinned platform, + lib_deps)
cargo-embedded cargo_embedded embedded Rust (+ pinned rust-toolchain.toml)
espidf espidf ESP-IDF (+ main/idf_component.yml)
zephyr-pinned zephyr-pinned Zephyr (west.yml, pinned revision, + module imports)
freertos-cmake (ours) CMake pulling the FreeRTOS kernel with FetchContent at a pinned tag
freertos-lostbuild lostbuild source archaeology: no build system, FreeRTOS found from its headers
c-sensor-node (ours) Make; C/C++ SAST (#334): planted flaws in Core/, a vendored HAL in Drivers/ that must not be reported
yocto-layer (ours) none: Yocto is not analysed yet, so the scan must record it

make is also onboarded as a backend service (fw-make-onboarded-as-service): the firmware SBOM follows detection, not the type picked in the wizard.

When Firmwerk's detection changes on purpose, refresh the copy and re-bless.

The baselines record what each manifest declares (library:zephyr@v3.6.0, library:espressif/led_strip@2.5.3) and, where a manifest gives a range instead of a version, the row carries the requirement rather than a version a CVE could be matched against.