mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-12 22:44:14 +00:00
The entry-point loop in get_available_compliance_frameworks appended framework names without checking whether the same name was already provided by a built-in. The loader (Compliance.get_bulk) already respects "built-in wins" via an explicit guard, but the listing function did not, causing --list-compliance and --list-compliance-requirements to print the same name twice on collision with a built-in. Adds the same dedup guard already used by the universal frameworks loop a few lines above, restoring symmetry across the three compliance discovery layers. Includes a regression test that registers a fake entry point with a name colliding with a known built-in (cis_2.0_aws) and asserts the framework appears exactly once in the resulting list.