Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(general): remove limitation of resource and provider in tf.json file #6133

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions checkov/terraform_json/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ def loads(file_path: Path) -> tuple[dict[str, Any], list[tuple[int, str]]]:

content = read_file_with_any_encoding(file_path=file_path)

if not all(key in content for key in ("resource", "provider")):
return {}, []

file_lines = [(idx + 1, line) for idx, line in enumerate(content.splitlines(keepends=True))]

template: "dict[str, Any] | list[dict[str, Any]]" = loader.loads(content=content)
Expand Down