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

TypeError: 'int' object is not subscriptable #184

Open
themoonraker13 opened this issue Dec 23, 2024 · 0 comments
Open

TypeError: 'int' object is not subscriptable #184

themoonraker13 opened this issue Dec 23, 2024 · 0 comments

Comments

@themoonraker13
Copy link

themoonraker13 commented Dec 23, 2024

Running into the following error since upgrading to checkov-action v12.2938.0:

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/checkov/main.py", line 522, in run
    self.scan_reports = runner_registry.run(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/checkov/common/runners/runner_registry.py", line 126, in run
    self.runners[0].run(root_folder, external_checks_dir=external_checks_dir, files=files,
  File "/usr/local/lib/python3.11/site-packages/checkov/terraform/runner.py", line 134, in run
    self.check_tf_definition(report, root_folder, runner_filter, collect_skip_comments)
  File "/usr/local/lib/python3.11/site-packages/checkov/terraform/runner.py", line 228, in check_tf_definition
    self.push_skipped_checks_down_from_modules(self.context)
  File "/usr/local/lib/python3.11/site-packages/checkov/terraform/runner.py", line 254, in push_skipped_checks_down_from_modules
    self.push_skipped_checks_down(definition_context, skipped_checks, resolved_paths)
  File "/usr/local/lib/python3.11/site-packages/checkov/terraform/runner.py", line 286, in push_skipped_checks_down
    self.push_skipped_checks_down(definition_context, skipped_checks, recursive_resolved_paths)
  File "/usr/local/lib/python3.11/site-packages/checkov/terraform/runner.py", line 293, in push_skipped_checks_down
    resource_config["skipped_checks"] += skipped_checks
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
TypeError: 'int' object is not subscriptable

We're using the ubuntu-latest runner image and were originally using bridgecrewio/checkov-action@v12 before it started failing.

NOTE: Downgrading to v12.2937.0 fixed the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant