From da6c5fda17ab1aea8b2855aa253b30449d3654d1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 02:58:57 +0000 Subject: [PATCH 1/2] Initial plan From 9214b72b554dac6bf6e63ca5b89427faa4331e82 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Apr 2026 03:00:51 +0000 Subject: [PATCH 2/2] fix: apply SCAN_EXCLUSIONS in scan loop and exclude test file from secret scanning Agent-Logs-Url: https://github.com/techwavedev/openminions/sessions/83a05781-6a20-43f8-b72b-3c1b70622312 Co-authored-by: techwavedev <36747067+techwavedev@users.noreply.github.com> --- bin/security_gate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/security_gate.py b/bin/security_gate.py index 891279e..ebe2cdf 100644 --- a/bin/security_gate.py +++ b/bin/security_gate.py @@ -71,6 +71,7 @@ SCAN_EXCLUSIONS = { "bin/security_gate.py", "SECURITY.md", + "tests/test_unit_security_gate.py", } @@ -229,6 +230,8 @@ def main(): # 3. Scan for secrets in tracked files secret_count = 0 for filepath_str in tracked: + if filepath_str in SCAN_EXCLUSIONS: + continue filepath = PROJECT_ROOT / filepath_str if not filepath.exists(): continue