-
Notifications
You must be signed in to change notification settings - Fork 15
update gitleaks config #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Update gitleaks.toml configuration - Add comprehensive test suite for gitleaks config validation - Update ahocorasick_regex_match.py to handle gitleaks patterns correctly
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #21 +/- ##
=======================================
Coverage ? 91.82%
=======================================
Files ? 4
Lines ? 159
Branches ? 0
=======================================
Hits ? 146
Misses ? 13
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on December 6
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
oxnick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, look at the cursor comments
- Update safe_compile to correctly handle bad escapes like \\z and preserve valid Python regex anchors like \\A and \\Z.
Description
Update gitleaks conf to the latest version of configuration.
This will update the built in version of the library with the latest version (at the moment of opening the PR) of gitleaks configurations
Type of Change
Changes Made
Testing
Checklist
Note
Upgrades the built-in
gitleaks.toml, enhances regex compilation for Go-style patterns, adds comprehensive config/detection tests, and updates CI/tooling with version bump.maskerlogger/config/gitleaks.tomlto latest upstream with expanded rules, allowlists, and stopwords.RegexMatcherinmaskerlogger/ahocorasick_regex_match.pywithsafe_compileto handle Go-style tokens (e.g.,\z) and centralized case-insensitive compilation.tests/test_gitleaks_config.pyvalidating config load, required fields, regex compilation, Aho-Corasick init, and detection of common secrets (GitHub PAT, AWS, Slack, Stripe, OpenAI, JWT, private keys, generic keys).${{ secrets.CODECOV_TOKEN }}in.github/workflows/run-tests.yml..pre-commit-config.yaml(exclude secret-detection test; add mypy/poetry hooks).1.1.0b1inpyproject.tomland update dev tooling settings.Written by Cursor Bugbot for commit 76c7a18. This will update automatically on new commits. Configure here.