You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
A valid playbook with an empty tasks section will cause a python exception and subsequently an abnormal exit for Checkov. An example for this is a simple playbook that calls a role. This is a valid ansible playbook, works in ansible, and is seen as valid by ansible-lint.
Examples
A Playbook of:
---
- name: Using a Rolehosts: allroles:
- role: somerolenametasks:
will cause a python exception: (trimmed)
...
File "./venv/lib/python3.10/site-packages/checkov/ansible/utils.py", line 144, in build_definitions_context
fortaskin code_block[ResourceType.TASKS]:
TypeError: 'NoneType' object is not iterable
Describe the issue
A valid playbook with an empty tasks section will cause a python exception and subsequently an abnormal exit for Checkov. An example for this is a simple playbook that calls a role. This is a valid ansible playbook, works in ansible, and is seen as valid by ansible-lint.
Examples
A Playbook of:
will cause a python exception: (trimmed)
Exception Trace
debug_checkov.txt
Attached
Desktop (please complete the following information):
Additional context
none.
The text was updated successfully, but these errors were encountered: