From 265d8dd629569ca6b4034c6d65af5bc7104bff53 Mon Sep 17 00:00:00 2001 From: Taylor Date: Fri, 23 Jun 2023 22:02:59 -0400 Subject: [PATCH] Update ClearTextAPIKey.py --- checkov/openapi/checks/resource/generic/ClearTextAPIKey.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/checkov/openapi/checks/resource/generic/ClearTextAPIKey.py b/checkov/openapi/checks/resource/generic/ClearTextAPIKey.py index 85199902e63..c9b748a6e3c 100644 --- a/checkov/openapi/checks/resource/generic/ClearTextAPIKey.py +++ b/checkov/openapi/checks/resource/generic/ClearTextAPIKey.py @@ -11,7 +11,7 @@ def __init__(self) -> None: id = "CKV_OPENAPI_20" name = "Ensure that API keys are not sent over cleartext" categories = [CheckCategories.API_SECURITY] - supported_resources = ["paths"] + supported_resources = ['paths'] self.irrelevant_keys = ['__startline__', '__endline__'] super().__init__(name=name, id=id, categories=categories, supported_entities=supported_resources, block_type=BlockType.DOCUMENT) @@ -48,4 +48,5 @@ def scan_entity_conf(self, conf: dict[str, Any], entity_type: str) -> tuple[Chec return CheckResult.FAILED, security_schemes return CheckResult.PASSED, conf + check = ClearTestAPIKey()