diff --git a/compliance-agent/src/pipeline/build_lifecycle.rs b/compliance-agent/src/pipeline/build_lifecycle.rs index fcdf2fd..3c18109 100644 --- a/compliance-agent/src/pipeline/build_lifecycle.rs +++ b/compliance-agent/src/pipeline/build_lifecycle.rs @@ -304,7 +304,7 @@ fn ios_deployment_target( also runs on current iOS releases." ), remediation, - severity: Severity::High, + severity: Severity::Low, cwe: "CWE-1104", path, line: Some(line), @@ -355,7 +355,7 @@ fn unity_platform_hits(root: &Path, project: &Path) -> Vec { ), remediation: "Raise the Minimum API Level in the Player Settings (Android) to a \ supported Android release, and test on it.", - severity: Severity::High, + severity: Severity::Low, cwe: "CWE-1104", path, line: Some(setting.line), @@ -467,14 +467,21 @@ mod tests { } /// The hits as `rule path:line`; every end-of-support hit is high, like - /// every other end-of-life finding. + /// every other end-of-life finding, except the minimum OS an app still + /// installs on, which stays low until that severity is decided. fn hits(t: &Tree) -> Vec { let found = check_tree(&t.0); for hit in found .iter() .filter(|h| h.rule_id.ends_with("-end-of-support")) { - assert_eq!(hit.severity, Severity::High, "{}", hit.rule_id); + let expected = match hit.rule_id { + "ios-deployment-target-end-of-support" | "android-min-sdk-end-of-support" => { + Severity::Low + } + _ => Severity::High, + }; + assert_eq!(hit.severity, expected, "{}", hit.rule_id); } found .into_iter()