diff --git a/checkov/main.py b/checkov/main.py index 2c186d51bbe..f3124c5e8ba 100755 --- a/checkov/main.py +++ b/checkov/main.py @@ -185,7 +185,7 @@ def normalize_config(self) -> None: if self.config.use_enforcement_rules and not self.config.bc_api_key: self.parser.error('Must specify an API key with --use-enforcement-rules') - if self.config.bc_api_key and not self.config.repo_id: + if self.config.bc_api_key and not self.config.repo_id and not self.config.list: self.parser.error('--repo-id is required when using a platform API key') if self.config.policy_metadata_filter and not (self.config.bc_api_key and self.config.prisma_api_url):