diff --git a/checkov/common/checks/base_check_registry.py b/checkov/common/checks/base_check_registry.py index 11eb5ec2647..8e7d6369c5e 100644 --- a/checkov/common/checks/base_check_registry.py +++ b/checkov/common/checks/base_check_registry.py @@ -89,7 +89,7 @@ def get_checks(self, entity: str) -> List[BaseCheck]: res = self.checks[entity].copy() if entity in self.checks.keys() else [] # check wildcards for pattern, checks in self.wildcard_checks.items(): - if fnmatch.fnmatchcase(entity, pattern): + if entity and fnmatch.fnmatchcase(entity, pattern): res += checks return res