From 80aa463aa21df09cdf31f0706d7c5290497e77a0 Mon Sep 17 00:00:00 2001 From: Pepe Fagoaga Date: Mon, 21 Aug 2023 09:04:15 +0200 Subject: [PATCH] fix(checks_to_execute): --checks and --resource_arn working together (#2743) --- prowler/__main__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prowler/__main__.py b/prowler/__main__.py index f7a970da..1d7eb19b 100644 --- a/prowler/__main__.py +++ b/prowler/__main__.py @@ -138,7 +138,8 @@ def prowler(): # Once the audit_info is set and we have the eventual checks based on the resource identifier, # it is time to check what Prowler's checks are going to be executed if audit_info.audit_resources: - checks_to_execute = set_provider_execution_parameters(provider, audit_info) + checks_from_resources = set_provider_execution_parameters(provider, audit_info) + checks_to_execute = checks_to_execute.intersection(checks_from_resources) # Sort final check list checks_to_execute = sorted(checks_to_execute)