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
checkov -d . --compact --quiet
2024-11-14 08:00:34,407 [MainThread ] [ERROR] Failed to run check CKV_AWS_375 on /modules/utils/terraform-aws-s3-bucket/v4.2.2/main.tf:aws_s3_bucket_acl.this[0]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/checkov/common/checks/base_check.py", line 68, in run
check_result["result"] = self.scan_entity_conf(entity_configuration, entity_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/checkov/terraform/checks/resource/base_resource_check.py", line 43, in scan_entity_conf
return self.scan_resource_conf(conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/checkov/terraform/checks/resource/aws/S3GlobalViewACL.py", line 22, in scan_resource_conf
if'permission'in grant and ('FULL_CONTROL'in grant.get('permission') or 'READ_ACP'in grant.get('permission')):
^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
2024-11-14 08:00:34,414 [MainThread ] [ERROR] Failed to run check CKV_AWS_375 on /modules/utils/terraform-aws-s3-bucket/v4.2.2/main.tf:aws_s3_bucket_acl.this[0]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/checkov/common/checks/base_check.py", line 68, in run
check_result["result"] = self.scan_entity_conf(entity_configuration, entity_type)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/checkov/terraform/checks/resource/base_resource_check.py", line 43, in scan_entity_conf
return self.scan_resource_conf(conf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/checkov/terraform/checks/resource/aws/S3GlobalViewACL.py", line 22, in scan_resource_conf
if'permission'in grant and ('FULL_CONTROL'in grant.get('permission') or 'READ_ACP'in grant.get('permission')):
^^^^^^^^^
AttributeError: 'str' object has no attribute 'get'
Desktop (please complete the following information):
OS: MacOS
Checkov Version 3.2.256
Additional context
Tested fine with version 3.2.255 and earlier
The text was updated successfully, but these errors were encountered:
Describe the issue
Explain what you expected to happen when checkov crashed.
When I use checkov to scan Terraform S3 public module v4.2.2, checkov throws some errors:
Exception Trace
Desktop (please complete the following information):
Additional context
Tested fine with version 3.2.255 and earlier
The text was updated successfully, but these errors were encountered: