Open anujmittalcdw opened 1 year ago
I don't know if it's the same issue but checkov is hanging my workflow since the upgrade from v2.3.214.
If I pin back to the commit for v2.3.214 it works.
checkov -d . --quiet --output sarif --download-external-modules true
Error: -16 04:53:06,712 [MainThread ] [ERROR] Exception traceback:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/checkov/main.py", line 501, in run
exit_codes.append(self.print_results(
File "/usr/local/lib/python3.10/site-packages/checkov/main.py", line 690, in print_results
return runner_registry.print_reports(
File "/usr/local/lib/python3.10/site-packages/checkov/common/runners/runner_registry.py", line 428, in print_reports
sarif = Sarif(reports=sarif_reports, tool=self.tool)
File "/usr/local/lib/python3.10/site-packages/checkov/common/output/sarif.py", line 40, in __init__
self.json = self.create_json()
File "/usr/local/lib/python3.10/site-packages/checkov/common/output/sarif.py", line 46, in create_json
"runs": self._create_runs(),
File "/usr/local/lib/python3.10/site-packages/checkov/common/output/sarif.py", line 52, in _create_runs
results = self._create_results()
File "/usr/local/lib/python3.10/site-packages/checkov/common/output/sarif.py", line 226, in _create_results
"startLine": int(record.file_line_range[0]) or 1,
TypeError: int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
Traceback (most recent call last):
Same issue here
@aclarkot thanks that version works!
For anyone hitting the same issue
- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@94be32d33f46ce5f2f07200bb5df4f5036b7296c
with:
output_format: sarif
download_external_modules: true
Earlier it used to work fine
Pipeline
Output