diff --git a/tools/devsecops_engine_tools/engine_sast/engine_secret/src/infrastructure/driven_adapters/gitleaks/gitleaks_tool.py b/tools/devsecops_engine_tools/engine_sast/engine_secret/src/infrastructure/driven_adapters/gitleaks/gitleaks_tool.py index 6ad8597c..9e441a99 100644 --- a/tools/devsecops_engine_tools/engine_sast/engine_secret/src/infrastructure/driven_adapters/gitleaks/gitleaks_tool.py +++ b/tools/devsecops_engine_tools/engine_sast/engine_secret/src/infrastructure/driven_adapters/gitleaks/gitleaks_tool.py @@ -89,7 +89,10 @@ def run_tool_secret_scan( if config_tool[tool]["ENABLE_CUSTOM_RULES"]: Utils().configurate_external_checks(tool, config_tool, secret_tool, secret_external_checks, agent_work_folder) - command.extend(["--config", f"{agent_work_folder}{os.sep}rules{os.sep}gitleaks{os.sep}gitleaks.toml"]) + if "gitleaks.exe" in self.COMMAND: folder = agent_work_folder + else: folder = "/tmp" + + command.extend(["--config", f"{folder}{os.sep}rules{os.sep}gitleaks{os.sep}gitleaks.toml"]) try: findings = [] diff --git a/tools/devsecops_engine_tools/version.py b/tools/devsecops_engine_tools/version.py index d3a6c04a..59649b8a 100644 --- a/tools/devsecops_engine_tools/version.py +++ b/tools/devsecops_engine_tools/version.py @@ -1 +1 @@ -version = '1.24.0' +version = '1.25.0'