Skip to content

Commit c361e8b

Browse files
nullvariantclaude
andcommitted
fix(ci): correct .gitleaks.toml syntax and allowlist paths
Fix TOML syntax error (paths must be string array, not table array). Add allowlist for compiled output (out/), .vscode-test/, and node_modules/. Use regex alternation for src/out variants. Signed-off-by: Null;Variant <null@nullvariant.com> 🖥️ IDE: [VS Code](https://code.visualstudio.com/) 🔌 Extension: [Claude Code](https://claude.ai/download) Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Model-Raw: claude-opus-4-6
1 parent a78f0c9 commit c361e8b

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

.gitleaks.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[extend]
22
useDefault = true
33

4-
[[allowlist.paths]]
5-
description = "Test fixtures contain intentional dummy secrets for security testing"
6-
regex = '''src/test/'''
7-
8-
[[allowlist.paths]]
9-
description = "SSH key format detection uses PEM header strings as constants"
10-
regex = '''src/sshAgent\.ts'''
4+
[allowlist]
5+
paths = [
6+
'''(src|out)/test/''',
7+
'''(src|out)/ssh/sshAgent\.(ts|js)''',
8+
'''\.vscode-test/''',
9+
'''node_modules/''',
10+
]

0 commit comments

Comments
 (0)