From e84910d272d169015315e82876205b092dab0077 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 9 Oct 2026 21:18:56 +0200 Subject: [PATCH] fix(eol): the minimum OS an app installs on stays low until its severity is decided ios-deployment-target- and android-min-sdk-end-of-support flag the oldest OS an app still installs on, not an end-of-life component it ships or builds with; they keep their previous severity (low) pending a product decision. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p --- compliance-agent/src/pipeline/build_lifecycle.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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()