Skip to content

Commit

Permalink
remove true
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbole committed Dec 23, 2024
1 parent e7aad69 commit ab625b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/devsecops_engine_tools/engine_utilities/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def configurate_external_checks(self, tool, config_tool, secret_tool, secret_ext
logger.warning("The secret is not configured for external controls")


elif config_tool[tool]["USE_EXTERNAL_CHECKS_GIT"] == "True" and platform.system() in (
elif config_tool[tool]["USE_EXTERNAL_CHECKS_GIT"] and platform.system() in (
"Linux", "Darwin",
):
config_knowns_hosts(
Expand All @@ -92,7 +92,7 @@ def configurate_external_checks(self, tool, config_tool, secret_tool, secret_ext
ssh_key_password = decode_base64(secret["repository_ssh_password"])
agent_env = add_ssh_private_key(ssh_key_file_path, ssh_key_password)

elif config_tool[tool]["USE_EXTERNAL_CHECKS_DIR"] == "True":
elif config_tool[tool]["USE_EXTERNAL_CHECKS_DIR"]:
if not github_token:
github_token = github_api.get_installation_access_token(
secret.get("github_apps"),
Expand Down

0 comments on commit ab625b4

Please sign in to comment.