Skip to content

checkov runner IndexError #7091

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

Open
lukelloydagi opened this issue Apr 9, 2025 · 3 comments
Open

checkov runner IndexError #7091

lukelloydagi opened this issue Apr 9, 2025 · 3 comments
Labels

Comments

@lukelloydagi
Copy link

Describe the issue
MegaLinter v8.4.0 (checkov v3.2.357) & MegaLinter v8.4.2 (checkov v3.2.360) throws this error:

Failed to invoke function /venvs/checkov/lib/python3.12/site-packages/checkov/common/runners/runner_registry._parallel_run with (<checkov.arm.runner.Runner object at 0x7fe367867680>, '.', None, None, <checkov.runner_filter.RunnerFilter object at 0x7fe3678ce750>, True, None)

Exception traceback:
Traceback (most recent call last):
  File "/venvs/checkov/lib/python3.12/site-packages/checkov/main.py", line 532, in run
    self.scan_reports = runner_registry.run(
                        ^^^^^^^^^^^^^^^^^^^^
  File "/venvs/checkov/lib/python3.12/site-packages/checkov/common/runners/runner_registry.py", line 177, in run
    for result in parallel_runner_results:
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/venvs/checkov/lib/python3.12/site-packages/checkov/common/parallelizer/parallel_runner.py", line 110, in _run_function_multiprocess_fork
    raise v.internal_exception.with_traceback(v.internal_exception.__traceback__)
IndexError: list index out of range

Additional context
I've already raised with MegaLinter (oxsecurity/megalinter#4906)
Nicolas has said it looks to be a checkov internal error and so I'm raising here

@maxamel
Copy link
Contributor

maxamel commented Apr 9, 2025

It would be difficult to debug without knowing at least what is the running command and on what files it crashes. Can you provide that info?

@lukelloydagi
Copy link
Author

It would be difficult to debug without knowing at least what is the running command and on what files it crashes. Can you provide that info?

@nvuillam, are you able to provide the info?

@nvuillam
Copy link

@lukelloydagi you can find how checkov is called in MegaLinter logs :)

Example below

Image

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

No branches or pull requests

3 participants