diff --git a/checkov/kubernetes/parser/parser.py b/checkov/kubernetes/parser/parser.py
index 4aabc8b78..54d8fa396 100644
--- a/checkov/kubernetes/parser/parser.py
+++ b/checkov/kubernetes/parser/parser.py
@@ -20,10 +20,10 @@ def parse(filename):
         if filename.endswith(".json"):
             (template, template_lines) = k8_json.load(filename)
         if template:
-            if isinstance(template,list):
+            if isinstance(template, list):
                 for i in range(len(template)):
-                    if isinstance(template[i],dict):
-                        if (not 'apiVersion' in template[i].keys()) and (not 'kind' in template[i].keys()):
+                    if isinstance(template[i], dict):
+                        if not ('apiVersion' in template[i].keys() and 'kind' in template[i].keys()):
                             return
                     else:
                         return
diff --git a/checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py b/checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py
index 78b50149c..821836f39 100644
--- a/checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py
+++ b/checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py
@@ -21,6 +21,8 @@ class GoogleCloudSqlDatabasePublicallyAccessible(BaseResourceCheck):
             if 'authorized_networks' in conf['settings'][0]['ip_configuration'][0].keys():
                 authorized_networks_count = len(conf['settings'][0]['ip_configuration'][0]['authorized_networks'][0])
                 for authorized_network in conf['settings'][0]['ip_configuration'][0]['authorized_networks'][0]:
+                    if isinstance(authorized_network, str):
+                        return CheckResult.UNKNOWN
                     if 'value' in authorized_network.keys():
                         if "/0" not in authorized_network['value']:
                             authorized_networks_passed += 1
@@ -30,4 +32,5 @@ class GoogleCloudSqlDatabasePublicallyAccessible(BaseResourceCheck):
         else: 
             return CheckResult.FAILED
 
+
 check = GoogleCloudSqlDatabasePublicallyAccessible()

GCP: GoogleCloudSqlDatabasePublicallyAccessible raises AttributeError
# Description

A SQL database instance declared like this crashes the check for publically-accessible instances:

```hcl
resource "google_sql_database_instance" "sql_instance" {
  name   = "${var.gcp-project}-db-dev"
  region = "${var.region}"
  settings {
    tier = "${var.db_machine_type}"
    ip_configuration {
                ipv4_enabled = true
                authorized_networks {
                name = "${var.gcp-project}-sql-network"
                value = google_compute_address.ip_address-dev.address
                }
  }
 }
}
```

## Crash Log

```
ERROR:checkov.terraform.checks.resource.gcp.GoogleCloudSqlDatabasePublicallyAccessible:Failed to run check: Ensure that Cloud SQL database Instances are not open to the world for configuration: {'name': ['${var.gcp-project}-db-dev'], 'region': ['us-central1'], 'settings': [{'tier': ['${var.db_machine_type}'], 'ip_configuration': [{'ipv4_enabled': [True], 'authorized_networks': [{'name': ['${var.gcp-project}-sql-network'], 'value': ['${google_compute_address.ip_address-dev.address}']}]}]}]} at file: /bcs/modules/aws/prod/cloud-sql.tf
```

<details>

```
Traceback (most recent call last):
  File "/usr/local/bin/checkov", line 5, in <module>
    run()
  File "/usr/local/lib/python3.8/site-packages/checkov/main.py", line 80, in run
    scan_reports = runner_registry.run(root_folder=root_folder, external_checks_dir=args.external_checks_dir,
  File "/usr/local/lib/python3.8/site-packages/checkov/common/runners/runner_registry.py", line 23, in run
    scan_report = runner.run(root_folder, external_checks_dir=external_checks_dir, files=files,
  File "/usr/local/lib/python3.8/site-packages/checkov/terraform/runner.py", line 48, in run
    self.check_tf_definition(report, root_folder,runner_filter)
  File "/usr/local/lib/python3.8/site-packages/checkov/terraform/runner.py", line 88, in check_tf_definition
    self.run_block(definition[block_type], definitions_context, full_file_path, report, scanned_file,
  File "/usr/local/lib/python3.8/site-packages/checkov/terraform/runner.py", line 110, in run_block
    results = registry.scan(scanned_file, entity, skipped_checks,runner_filter)
  File "/usr/local/lib/python3.8/site-packages/checkov/common/checks/base_check_registry.py", line 64, in scan
    result = self.run_check(check, entity_configuration, entity_name, entity_type, scanned_file, skip_info)
  File "/usr/local/lib/python3.8/site-packages/checkov/common/checks/base_check_registry.py", line 70, in run_check
    result = check.run(scanned_file=scanned_file, entity_configuration=entity_configuration,
  File "/usr/local/lib/python3.8/site-packages/checkov/common/checks/base_check.py", line 44, in run
    raise e
  File "/usr/local/lib/python3.8/site-packages/checkov/common/checks/base_check.py", line 33, in run
    check_result['result'] = self.scan_entity_conf(entity_configuration)
  File "/usr/local/lib/python3.8/site-packages/checkov/terraform/checks/resource/base_resource_check.py", line 20, in scan_entity_conf
    return self.scan_resource_conf(conf)
  File "/usr/local/lib/python3.8/site-packages/checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py", line 24, in scan_resource_conf
    if 'value' in authorized_network.keys():
AttributeError: 'str' object has no attribute 'keys'
```

</details>

## System Information

 - macOS 10.15.4
- Python 3.8.2
 - 1.0.308

diff --git a/tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py b/tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py
index 337118f8d..6690f82aa 100644
--- a/tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py
+++ b/tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py
@@ -1,4 +1,5 @@
 import unittest
+import hcl2
 
 from checkov.terraform.checks.resource.gcp.GoogleCloudSqlDatabasePublicallyAccessible import check
 from checkov.common.models.enums import CheckResult
@@ -16,6 +17,26 @@ class GoogleCloudSqlDatabasePublicallyAccessible(unittest.TestCase):
         scan_result = check.scan_resource_conf(conf=resource_conf)
         self.assertEqual(CheckResult.PASSED, scan_result)
 
+    def test_unknown(self):
+            hcl_parsed = hcl2.loads("""
+    resource "google_sql_database_instance" "sql_instance" {
+      name   = "${var.gcp-project}-db-dev"
+      region = "${var.region}"
+      settings {
+        tier = "${var.db_machine_type}"
+        ip_configuration {
+                    ipv4_enabled = true
+                    authorized_networks {
+                    name = "${var.gcp-project}-sql-network"
+                    value = google_compute_address.ip_address-dev.address
+                    }
+      }
+     }
+    }""")
+            resource_conf = hcl_parsed['resource'][0]['google_sql_database_instance']['sql_instance']
+            scan_result = check.scan_resource_conf(conf=resource_conf)
+            self.assertEqual(CheckResult.UNKNOWN, scan_result)
+
 
 if __name__ == '__main__':
     unittest.main()

pip install -e .
parse_log_pytest
pytest
pytest
apt-get update apt-get install -y git
3.7
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///croot/attrs_1668696182826/work
boto3==1.12.43
botocore==1.15.49
certifi @ file:///croot/certifi_1671487769961/work/certifi
chardet==3.0.4
-e git+https://github.com/bridgecrewio/checkov.git@eb1aacbad59bad4e60036cba2a6115f05ab33750#egg=checkov
colorama==0.4.3
docopt==0.6.2
docutils==0.15.2
dpath==1.5.0
flit_core @ file:///opt/conda/conda-bld/flit-core_1644941570762/work/source/flit_core
idna==2.8
importlib-metadata @ file:///tmp/build/80754af9/importlib-metadata_1648562407465/work
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
jmespath==0.10.0
junit-xml==1.8
lark-parser==0.7.8
packaging @ file:///croot/packaging_1671697413597/work
pluggy @ file:///tmp/build/80754af9/pluggy_1648042572264/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pytest==7.1.2
python-dateutil==2.9.0.post0
python-hcl2==0.2.5
PyYAML==5.2
requests==2.22.0
s3transfer==0.3.7
six==1.13.0
tabulate==0.8.6
termcolor==1.1.0
tomli @ file:///opt/conda/conda-bld/tomli_1657175507142/work
typing_extensions @ file:///croot/typing_extensions_1669924550328/work
urllib3==1.25.7
zipp @ file:///croot/zipp_1672387121353/work

name: checkov
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=22.1.0=py37h06a4308_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - flit-core=3.6.0=pyhd3eb1b0_0
  - importlib-metadata=4.11.3=py37h06a4308_0
  - importlib_metadata=4.11.3=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=22.0=py37h06a4308_0
  - pip=22.3.1=py37h06a4308_0
  - pluggy=1.0.0=py37h06a4308_1
  - py=1.11.0=pyhd3eb1b0_0
  - pytest=7.1.2=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tomli=2.0.1=py37h06a4308_0
  - typing_extensions=4.4.0=py37h06a4308_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.11.0=py37h06a4308_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - boto3==1.12.43
      - botocore==1.15.49
      - chardet==3.0.4
      - colorama==0.4.3
      - docopt==0.6.2
      - docutils==0.15.2
      - dpath==1.5.0
      - idna==2.8
      - jmespath==0.10.0
      - junit-xml==1.8
      - lark-parser==0.7.8
      - python-dateutil==2.9.0.post0
      - python-hcl2==0.2.5
      - pyyaml==5.2
      - requests==2.22.0
      - s3transfer==0.3.7
      - six==1.13.0
      - tabulate==0.8.6
      - termcolor==1.1.0
      - urllib3==1.25.7
prefix: /opt/conda/envs/checkov

tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py::GoogleCloudSqlDatabasePublicallyAccessible::test_unknown
tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py::GoogleCloudSqlDatabasePublicallyAccessible::test_failure tests/terraform/checks/resource/gcp/test_GoogleCloudSqlDatabasePublicallyAccessible.py::GoogleCloudSqlDatabasePublicallyAccessible::test_success
checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py checkov/kubernetes/parser/parser.py
checkov/terraform/checks/resource/gcp/GoogleCloudSqlDatabasePublicallyAccessible.py checkov/kubernetes/parser/parser.py