From a5456029551b79b53a09109e4755c6449169ec8c Mon Sep 17 00:00:00 2001 From: kartikp10 Date: Fri, 6 Oct 2023 11:20:53 -0400 Subject: [PATCH] fix flag --- checkov/common/bridgecrew/platform_integration.py | 2 +- checkov/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/checkov/common/bridgecrew/platform_integration.py b/checkov/common/bridgecrew/platform_integration.py index 609ea29feaf..485b8bbd9bc 100644 --- a/checkov/common/bridgecrew/platform_integration.py +++ b/checkov/common/bridgecrew/platform_integration.py @@ -1131,7 +1131,7 @@ def get_sso_prismacloud_url(self, report_url: str) -> str: def setup_on_prem(self): if self.customer_run_config_response: - self.on_prem = self.customer_run_config_response.get('onPrem', False) + self.on_prem = self.customer_run_config_response.get('onPrem', True) bc_integration = BcPlatformIntegration() diff --git a/checkov/main.py b/checkov/main.py index c11691fd77c..35fcdc1f8da 100755 --- a/checkov/main.py +++ b/checkov/main.py @@ -386,7 +386,7 @@ def run(self, banner: str = checkov_banner, tool: str = checkov_tool, source_typ logger.error('Please try setting the environment variable LOG_LEVEL=DEBUG and re-running the command, and provide the output to support', exc_info=True) self.exit_run() else: - if bc_integration.support: + if bc_integration.support_flag_enabled: logger.warning("--bc-api-key argument is required when using --support") logger.debug('No API key found. Scanning locally only.') self.config.include_all_checkov_policies = True