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
This check fail when the gke version is a string (1.29.4-gke.1043004).
Examples
Error: -09 14:42:01,690 [MainThread ] [ERROR] Failed to run check CKV_GCP_22 on /modules/shared/base/gke.tf:google_container_node_pool.default-01
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/gcp/GKEUseCosImage.py", line 24, in scan_resource_conf
version = float(splitter[0] + "." + splitter[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'var.gke_node_version'
The text was updated successfully, but these errors were encountered:
Describe the issue
This check fail when the gke version is a string (1.29.4-gke.1043004).
Examples
Error: -09 14:42:01,690 [MainThread ] [ERROR] Failed to run check CKV_GCP_22 on /modules/shared/base/gke.tf:google_container_node_pool.default-01
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/gcp/GKEUseCosImage.py", line 24, in scan_resource_conf
version = float(splitter[0] + "." + splitter[1])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'var.gke_node_version'
The text was updated successfully, but these errors were encountered: