mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-12 06:24:14 +00:00
The PIM alert object exposes an is_active flag that goes False once the alert condition stops firing, even though the previous number_of_affected_items count can stick around in the API response. The check was ignoring that flag, so a tenant whose alert was already resolved or dismissed could still receive a FAIL based on stale counters. Gate the FAIL branch on alert.is_active so only currently-firing alerts produce findings; everything else (resolved alert, inactive with leftover counts) is reported as PASS. A regression test covers the inactive-with- counts case to lock the behavior in.