Skip to content

Commit

Permalink
Update ClearTextAPIKey.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmithv11 committed Jun 24, 2023
1 parent e727c38 commit 265d8dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion checkov/openapi/checks/resource/generic/ClearTextAPIKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()

0 comments on commit 265d8dd

Please sign in to comment.