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]",