Repository: bridgecrewio/checkov

Issue:
Unable to see any CKV2 checks in the list
**Describe the bug**
I posted this on Slack first and was confirmed it's a bug. I can't see any of the CKV2 checks when running `checkov -l`

**Expected behavior**
CKV2 / graph checks should be present working.

**Screenshots**
![image](https://user-images.githubusercontent.com/42545485/116978125-369c3200-acbb-11eb-9c7e-f9b7bea1118c.png)


**Desktop (please complete the following information):**
 - OS: os X
 - Checkov Version 2.0.107



Discussion:

Resolving patch:
diff --git a/checkov/terraform/checks_infra/registry.py b/checkov/terraform/checks_infra/registry.py
--- a/checkov/terraform/checks_infra/registry.py
+++ b/checkov/terraform/checks_infra/registry.py
@@ -25,15 +25,20 @@ def load_checks(self):
 
     def _load_checks_from_dir(self, directory: str):
         dir = os.path.expanduser(directory)
-        self.logger.debug("Loading external checks from {}".format(dir))
+
+        checks_dir_content = os.listdir(os.path.dirname(dir))
+        self.logger.info(f'Checks dir contents: {checks_dir_content}')
+
+        self.logger.info("Loading external checks from {}".format(dir))
         for root, d_names, f_names in os.walk(dir):
+            self.logger.info(f'Searching through {d_names} and {f_names}')
             for file in f_names:
                 file_ending = os.path.splitext(file)[1]
                 if file_ending in CHECKS_POSSIBLE_ENDING:
                     with open(f'{root}/{file}', "r") as f:
-                        if dir != self.checks_dir:
+                        # if dir != self.checks_dir:
                             # This is a custom check, log its loading
-                            logging.info(f"loading {file}")
+                        self.logger.info(f"loading {file}")
                         check_yaml = yaml.safe_load(f)
                         check_json = json.loads(json.dumps(check_yaml))
                         check = self.parser.parse_raw_check(check_json, resources_types=self._get_resource_types(check_json))
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -62,6 +62,8 @@
     author_email="meet@bridgecrew.io",
     url="https://github.com/nimrodkor/checkov",
     packages=setuptools.find_packages(exclude=["tests*","integration_tests*"]),
+    include_package_data=True,
+    package_data = {'': ['*.yaml', '*.yml']},
     scripts=["bin/checkov", "bin/checkov.cmd"],
     long_description=long_description,
     long_description_content_type="text/markdown",


Test patch:
diff --git a/integration_tests/test_checkov_json_report.py b/integration_tests/test_checkov_json_report.py
--- a/integration_tests/test_checkov_json_report.py
+++ b/integration_tests/test_checkov_json_report.py
@@ -23,13 +23,17 @@ def test_k8goat_report(self):
         report_path = current_dir + "/../checkov_report_kubernetes-goat-helm.json"
         self.validate_report(report_path)
 
-    def test_checkov_report_terragoat_with_skip(self):
-        report_path = current_dir + "/../checkov_report_terragoat_with_skip.json"
-        with open(report_path) as json_file:
-            data = json.load(json_file)
-            for check_result in data["results"]["passed_checks"]:
-                self.assertNotEquals(check_result["check_id"], "CKV_AWS_33")
-                self.assertNotEquals(check_result["check_id"], "CKV_AWS_41")
+    # def test_checkov_report_terragoat_with_skip(self):
+    #     report_path = current_dir + "/../checkov_report_terragoat_with_skip.json"
+    #     checkov2_graph_findings = 0
+    #     with open(report_path) as json_file:
+    #         data = json.load(json_file)
+    #         for check_result in data["results"]["passed_checks"]:
+    #             self.assertNotEqual(check_result["check_id"], "CKV_AWS_33")
+    #             self.assertNotEqual(check_result["check_id"], "CKV_AWS_41")
+    #             if check_result["check_id"].startswith('CKV2'):
+    #                 checkov2_graph_findings += 1
+    #     self.assertGreater(checkov2_graph_findings, 20)
 
     def validate_report(self, report_path):
         with open(report_path) as json_file: