Skip to content

Commit 91de5db

Browse files
0xmariowuclaude
andcommitted
chore(gitleaks): allowlist install + npm-wrapper paths for .local XDG dirs
Tailscale-domain rule's regex was matching POSIX XDG user paths ($HOME/.local/bin) introduced by F003 npm wrapper PATH-persistence work. These are filesystem paths, not mDNS/Tailscale hostnames. Allowlist scoped to scripts/install.sh, npm/bin/*.js, and the related smoke/unit tests; regexes pinned to recognized XDG path components. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 49caa13 commit 91de5db

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.gitleaks.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ keywords = [".ts.net", ".local"]
3535
paths = ['''skills/.*/SKILL\.md$''', '''docs/.*\.md$''']
3636
regexes = ['''\.local/''']
3737

38+
[[rules.allowlists]]
39+
description = "Install scripts + npm wrapper + their tests reference $HOME/.local POSIX user dirs (XDG, not Tailscale .local hostname)"
40+
paths = ['''scripts/install\.sh$''', '''npm/bin/.*\.js$''', '''tests/smoke/test_(npm_wrapper|install_script)\.py$''', '''tests/unit/test_install_sh_flags\.py$''']
41+
regexes = ['''\.local/(bin|share|lib|var|state|cache|tmp)''', '''\$HOME/\.local''', '''process\.env\.HOME[^"]*\.local''']
42+
3843
# ── Public-repo-only rules ───────────────────────────────────────────────────
3944

4045
[[rules]]

0 commit comments

Comments
 (0)