Correct incorrect codepath for certain bases
MODIFY
checkov/kustomize/runner.py
checkov/kustomize/runner.py
@@ -152,7 +152,7 @@ class Runner(BaseRunner):
if 'bases' in fileContent:
metadata['referenced_bases'] = fileContent['bases']
- elif 'bases' in fileContent.get:
+ elif 'bases' in fileContent:
logging.debug(f"Kustomization contains bases: section. Likley an overlay/env. {parseKustomizationData}/kustomization.yaml")
metadata['type'] = "overlay"
metadata['referenced_bases'] = fileContent['bases']

Correct incorrect codepath for certain bases (#2280)