Skip to content

Commit dcd2457

Browse files
Juan Roldanclaude
andcommitted
fix(ci): use unanchored path regex for capmonster-extension allowlist
gitleaks reports absolute paths when --source is an absolute path (as used by the dist scan). Anchored ^-prefixed regexes never matched. Replace with unanchored capmonster-extension/ which covers both the working-tree and dist scan regardless of path prefix. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent e9d39c7 commit dcd2457

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.gitleaks.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ paths = [
6767

6868
# Vendored CapMonster browser extension — third-party bundled JS assets,
6969
# not GranClaw source code. clientKey is patched at runtime from env var.
70-
# Two paths: source tree and CLI dist (scanned separately by the gate).
71-
'''^packages/backend/assets/capmonster-extension/''',
72-
'''^backend/assets/capmonster-extension/''',
70+
# Unanchored: gitleaks reports absolute paths when --source is absolute
71+
# (dist scan), so ^-anchored patterns don't match.
72+
'''capmonster-extension/''',
7373
]
7474

7575
# PostHog project API key — intentionally bundled in client-side telemetry

0 commit comments

Comments
 (0)