Skip to content

fix: allowlist mock workload access token in gitleaks config#47

Merged
scottschreckengaust merged 1 commit intomainfrom
fix/gitleaks-baseline
Apr 23, 2026
Merged

fix: allowlist mock workload access token in gitleaks config#47
scottschreckengaust merged 1 commit intomainfrom
fix/gitleaks-baseline

Conversation

@scottschreckengaust
Copy link
Copy Markdown
Contributor

Summary

  • Add gitleaks allowlist entry for context-hydration.test.ts to suppress false positive on mock workload access token (wat-opaque-123)
  • The generic-api-key rule flags this test fixture value across all git history, blocking every git push via the pre-push security hook

Context

The mock token was introduced in commit d402a681 and triggers gitleaks on every push, even though it is not a real credential. The existing .gitleaks.toml already has a similar allowlist for PEM fixtures in agent tests — this follows the same pattern.

Test plan

  • gitleaks detect --source . --no-banner reports no leaks found after the change
  • Pre-push hook security:secrets stage passes

🤖 Generated with Claude Code

@scottschreckengaust scottschreckengaust requested a review from a team as a code owner April 23, 2026 20:09
The context-hydration test uses `wat-opaque-123` as a mock workload
access token. Gitleaks flags this as a generic-api-key false positive
across all commits. Add a path-scoped allowlist entry to suppress it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@scottschreckengaust scottschreckengaust added this pull request to the merge queue Apr 23, 2026
Merged via the queue into main with commit cc0e0e9 Apr 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants