Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitleaks.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[allowlist]
description = "Global Allowlist"

regexes = [
'''ABTLWHOULUVAXGTRYU7OC2876QJ2O''',
'''GR1348941oP5naQnWsbJRTvXHC7VJ''',
'''ghs_16C7e42F292c6912E7710c838347Ae178B4a''',
]
Comment on lines +1 to +8

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Global token allowlist 🐞 Bug ⛨ Security

The new .gitleaks.toml globally allowlists full token-like values, meaning if any of these values
ever appear outside the intended test fixtures, gitleaks will silently ignore them and you may miss
a real leak. Since these values come from test fixtures, a safer approach is to redact/replace them
in fixtures (or scope allowlisting to fixture paths) rather than allowlisting the raw token strings
repo-wide.
Agent Prompt
## Issue description
A repo-wide gitleaks allowlist containing full token-like values suppresses detection everywhere and keeps realistic token strings in the repository.

## Issue Context
The allowlisted strings appear to come from bulk-import backend MSW fixtures.

## Fix Focus Areas
- .gitleaks.toml[1-8]
- workspaces/bulk-import/plugins/bulk-import-backend/__fixtures__/github/app/installations/app-installation-1-access-tokens.json[1-4]
- workspaces/bulk-import/plugins/bulk-import-backend/__fixtures__/github/repos/my-ent-org-2/A2/repo.json[205-223]
- workspaces/bulk-import/plugins/bulk-import-backend/__fixtures__/github/user/repos.json[94-103]
- workspaces/bulk-import/plugins/bulk-import-backend/__fixtures__/handlers.ts[24-36]
- workspaces/bulk-import/plugins/bulk-import-backend/__fixtures__/handlers.ts[53-64]

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools