From 3d12c18dc454e9ccf331874f857c4155727cfe1f Mon Sep 17 00:00:00 2001 From: Justin Diclemente Date: Thu, 18 Jun 2026 22:30:05 -0400 Subject: [PATCH] fix: repo-audit --full flag for user-requested secret dumps --- skills/intelligence-engine/scripts/repo-audit | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/skills/intelligence-engine/scripts/repo-audit b/skills/intelligence-engine/scripts/repo-audit index 22e490f..456d31f 100755 --- a/skills/intelligence-engine/scripts/repo-audit +++ b/skills/intelligence-engine/scripts/repo-audit @@ -59,12 +59,16 @@ def audit(): return findings if __name__ == "__main__": + full = "--full" in sys.argv + args = [a for a in sys.argv[1:] if a != "--full"] + REPO = Path(args[0]) if args else Path.cwd() f = audit() + cap = None if full else 12 if f: - for line in f[:12]: + for line in f[:cap] if cap else f: print(f" ! {line}") - if len(f) > 12: - print(f" … +{len(f)-12} more") + if cap and len(f) > cap: + print(f" … +{len(f)-cap} more (use --full for all)") sys.exit(1) else: p = REPO / "pyproject.toml"