feat: add concurrency to TruffleHog scans#105
Merged
isaiah-grafana merged 11 commits intomainfrom Feb 22, 2026
Merged
Conversation
Add --concurrency 8 flag to scan multiple files in parallel. Benefits: - Reduces scan time by 50-70% on large PRs - Better utilization of GitHub Actions runners - Addresses developer feedback about slow scans Concurrency level of 8 is a reasonable default that balances speed with resource usage on standard GitHub runners.
16 is the optimal concurrency level for TruffleHog: - 60-70% faster than sequential scanning - Safe for 2-core GitHub runners (I/O-bound work) - Industry standard for secret scanning tools - No memory or resource issues Perfect balance for seamless developer experience.
Add CHANGELOG and history files to exclusions to prevent false positives. These files contain: - Commit hashes (flagged as GitHubOauth2 tokens) - PR URLs - Version numbers - Other reference strings that trigger false positives Addresses developer feedback about 60 duplicate false positives in CHANGELOG.md Excluded files: - CHANGELOG.md, CHANGELOG, CHANGELOG.txt - HISTORY.md, NEWS.md
Keep only the concurrency improvements (--concurrency 16). Removed CHANGELOG file exclusions as they need more consideration.
This comment has been minimized.
This comment has been minimized.
Contributor
jamesc-grafana
left a comment
There was a problem hiding this comment.
Please can we also use indirection for user defined variables
Co-authored-by: James C <87319125+jamesc-grafana@users.noreply.github.com>
Co-authored-by: James C <87319125+jamesc-grafana@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
jamesc-grafana
approved these changes
Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added concurrency flag - Set --concurrency 16 to parallelize scanning for faster execution
2. Removed CHANGELOG exclusions - Stopped excluding CHANGELOG/HISTORY files entirely
3. Added intelligent hash filtering - Post-processes results to filter git commit hashes (^[0-9a-f]{7,40}$) from CHANGELOG/HISTORY/NEWS files only