Describe the issue
We are testing the checkov sast scanning in our environment. We created a custom policy and added arm, secrets & bicep in the framework. While running the scan in the azure devops pipeline, we are getting the below pipeline error:
File "/home/vsts/.local/lib/python3.12/site-packages/checkov/common/runners/runner_registry.py", line 177, in run
for result in parallel_runner_results:
File "/home/vsts/.local/lib/python3.12/site-packages/checkov/common/parallelizer/parallel_runner.py", line 118, in _run_function_multiprocess_fork
raise v.internal_exception.with_traceback(v.internal_exception.traceback)
IndexError: list index out of range
This error happens only if we have arm in the framework, if we just keep bicep and secret, its working fine.
Examples
- script: |
mkdir -p $(CHECKOV_OUTPUT_DIR)
displayName: 'Create Output Directory'
- script: |
checkov \
--directory . \
--framework arm secrets \
--output cli \
--output junitxml \
--output-file-path $(CHECKOV_OUTPUT_DIR) \
--soft-fail \
--enable-secret-scan-all-files \
--compact \
--external-checks-dir custom_policies \
--no-fail-on-crash \
--skip-path target \
--skip-path Library \
--skip-path sonar-scan
Desktop (please complete the following information):
- OS: ubuntu-latest
- Checkov Version - checkov==3.3.7
Describe the issue
We are testing the checkov sast scanning in our environment. We created a custom policy and added arm, secrets & bicep in the framework. While running the scan in the azure devops pipeline, we are getting the below pipeline error:
File "/home/vsts/.local/lib/python3.12/site-packages/checkov/common/runners/runner_registry.py", line 177, in run
for result in parallel_runner_results:
File "/home/vsts/.local/lib/python3.12/site-packages/checkov/common/parallelizer/parallel_runner.py", line 118, in _run_function_multiprocess_fork
raise v.internal_exception.with_traceback(v.internal_exception.traceback)
IndexError: list index out of range
This error happens only if we have arm in the framework, if we just keep bicep and secret, its working fine.
Examples
- script: |
mkdir -p $(CHECKOV_OUTPUT_DIR)
displayName: 'Create Output Directory'
Desktop (please complete the following information):