From e4b5e1fe834985276af9db4a3a9793009c074fbc Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 9 Oct 2026 20:04:31 +0200 Subject: [PATCH] feat(scans): image install names not in the tree are a note Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p --- compliance-core/src/models/scan.rs | 8 ++++++-- fixtures/nightly/baselines/fw-yocto-layer.json | 4 +++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/compliance-core/src/models/scan.rs b/compliance-core/src/models/scan.rs index 68397b4..c870457 100644 --- a/compliance-core/src/models/scan.rs +++ b/compliance-core/src/models/scan.rs @@ -262,7 +262,7 @@ impl SkipCode { pub fn is_informational(self) -> bool { // An exhaustive match, so a new code has to be classified here. match self { - Self::VendorCode | Self::SuppressedInSource => true, + Self::VendorCode | Self::SuppressedInSource | Self::NotInTree => true, Self::FeatureDisabled | Self::SubmodulesNotFetched | Self::ToolFailed @@ -426,7 +426,11 @@ mod skipped_stage_tests { #[test] fn only_code_exclusions_and_suppressions_are_informational() { - let notes = [SkipCode::VendorCode, SkipCode::SuppressedInSource]; + let notes = [ + SkipCode::VendorCode, + SkipCode::SuppressedInSource, + SkipCode::NotInTree, + ]; let skips = [ SkipCode::FeatureDisabled, SkipCode::SubmodulesNotFetched, diff --git a/fixtures/nightly/baselines/fw-yocto-layer.json b/fixtures/nightly/baselines/fw-yocto-layer.json index bc76036..027d08c 100644 --- a/fixtures/nightly/baselines/fw-yocto-layer.json +++ b/fixtures/nightly/baselines/fw-yocto-layer.json @@ -2,9 +2,11 @@ "scan_status": "completed", "skipped_stages": [ "firmware_sbom", - "image_install", "malware" ], + "notes": [ + "image_install" + ], "sbom": [ "yocto-recipe:busybox@1.35.0 [in image: pump-image]", "yocto-recipe:libmodbus@3.1.6 [in image: pump-image]",