Skip to content

Commit

Permalink
fix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikp10 committed Oct 6, 2023
1 parent db87944 commit a545602
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkov/common/bridgecrew/platform_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
2 changes: 1 addition & 1 deletion checkov/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a545602

Please sign in to comment.