From ac1442b783295f040083ed66659457140e3946d6 Mon Sep 17 00:00:00 2001 From: oshimko Date: Wed, 8 Jan 2025 14:33:18 +0200 Subject: [PATCH] skip tsconfig in terraform plan --- checkov/terraform/plan_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkov/terraform/plan_utils.py b/checkov/terraform/plan_utils.py index e94fda49b2f..f2d5aac1fec 100644 --- a/checkov/terraform/plan_utils.py +++ b/checkov/terraform/plan_utils.py @@ -29,7 +29,7 @@ def create_definitions( filter_ignored_paths(root, f_names, runner_filter.excluded_paths) for file in f_names: file_ending = os.path.splitext(file)[1] - if file_ending == '.json': + if file != 'tsconfig.json' and file_ending == '.json': file_path = os.path.join(root, file) try: with open(file_path, "rb") as f: