Skip to content

Commit

Permalink
chore: fix test (#5683)
Browse files Browse the repository at this point in the history
fix test
  • Loading branch information
gruebel authored Oct 24, 2023
1 parent 0df8ed8 commit eaeead8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion checkov/arm/checks/resource/MySQLEncryptionEnabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self) -> None:
categories = (CheckCategories.ENCRYPTION,)
super().__init__(name=name, id=id, categories=categories, supported_resources=supported_resources)

def scan_resource_conf(self, conf: dict[str, Any], entity_type: str) -> CheckResult:
def scan_resource_conf(self, conf: dict[str, Any]) -> CheckResult:
properties = conf.get("properties")
if properties and isinstance(properties, dict):
self.evaluated_keys = ["properties/dataencryption"]
Expand Down
7 changes: 6 additions & 1 deletion checkov/runner_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ def __init__(
resource_attr_to_omit
)
self.sast_languages: Set[SastLanguages] = RunnerFilter.get_sast_languages(framework, skip_framework)
if self.sast_languages and any([item for item in self.framework if item.startswith(CheckType.SAST) or item == 'all']) :
if self.sast_languages and any(item for item in self.framework if item.startswith(CheckType.SAST) or item == 'all'):
self.framework = [item for item in self.framework if not item.startswith(CheckType.SAST)]
self.framework.append(CheckType.SAST)
elif not self.sast_languages:
# remove all SAST and CDK frameworks
self.framework = [
item for item in self.framework if not item.startswith(CheckType.SAST) and item != CheckType.CDK
]

self.enable_git_history_secret_scan: bool = enable_git_history_secret_scan
if self.enable_git_history_secret_scan:
Expand Down

0 comments on commit eaeead8

Please sign in to comment.