From 5e876579f8b36038db21b87d09d499fd144e3cb1 Mon Sep 17 00:00:00 2001 From: StylusFrost Date: Thu, 30 Apr 2026 10:12:04 +0200 Subject: [PATCH] fix(sdk): use is_tool_wrapper_provider for compliance framework gate --- prowler/__main__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prowler/__main__.py b/prowler/__main__.py index 3ef794ca25..8b0b6bc7a5 100644 --- a/prowler/__main__.py +++ b/prowler/__main__.py @@ -197,9 +197,10 @@ def prowler(): # We treat the compliance framework as another output format if compliance_framework: args.output_formats.extend(compliance_framework) - # If no input compliance framework, set all, unless a specific service or check is input - # Skip for IAC and LLM providers that don't use compliance frameworks - elif default_execution and provider not in ["iac", "llm"]: + # If no input compliance framework, set all, unless a specific service or check is input. + # Skip for tool-wrapper providers (iac, llm, image, and any external plug-in + # declaring `is_external_tool_provider = True`) — they don't use compliance frameworks. + elif default_execution and not Provider.is_tool_wrapper_provider(provider): args.output_formats.extend(get_available_compliance_frameworks(provider)) # Set Logger configuration