Skip to content

Commit 70d292c

Browse files
authored
Merge pull request #293 from bancolombia/fix/engine_secret
fix(engine_secret): download custom rules if enabled
2 parents 1193c6b + d8ec5f9 commit 70d292c

File tree

1 file changed

+2
-1
lines changed
  • tools/devsecops_engine_tools/engine_sast/engine_secret/src/infrastructure/driven_adapters/trufflehog

1 file changed

+2
-1
lines changed

tools/devsecops_engine_tools/engine_sast/engine_secret/src/infrastructure/driven_adapters/trufflehog/trufflehog_run.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ def run_tool_secret_scan(
7272
exclude_path = f"{agent_work_folder}/excludedPath.txt"
7373
include_paths = self.config_include_path(files_commits, agent_work_folder, agent_os)
7474
enable_custom_rules = config_tool[tool]["ENABLE_CUSTOM_RULES"]
75-
Utils().configurate_external_checks(tool, config_tool, secret_tool, secret_external_checks, agent_work_folder)
75+
if enable_custom_rules:
76+
Utils().configurate_external_checks(tool, config_tool, secret_tool, secret_external_checks, agent_work_folder)
7677

7778
with concurrent.futures.ThreadPoolExecutor(max_workers=config_tool[tool]["NUMBER_THREADS"]) as executor:
7879
results = executor.map(

0 commit comments

Comments
 (0)