temp add enforcement rules direct API call
@@ -498,6 +498,13 @@ class BcPlatformIntegration:
logging.error(error_message)
raise BridgecrewAuthError(error_message)
self.customer_run_config_response = json.loads(request.data.decode("utf8"))
+
+
+ # TODO remove
+ url = f"{self.api_url}/api/v1/enforcement-rules"
+ request = self.http.request("GET", url, headers=headers)
+ self.customer_run_config_response['enforcementRules'] = json.loads(request.data.decode("utf8"))
+
logging.debug(f"Got customer run config from {platform_type} platform")
except Exception:
logging.warning(f"Failed to get the customer run config from {self.platform_run_config_url}", exc_info=True)
