* Adding quiet mode to silence banner
* Changing flag description. Adding flag to README
* Updating argument name
* updating variable name to aline with argument
* fixing readme spacing
* Fixing variable name
* Issue #980: Add support for Telegram Bot API Token
* Replace test with random bot_id length by tests with fixed one.
Add tests for the corner cases.
Co-authored-by: Alex Goncharov <b4bay@users.noreply.github.com>
* Add baseline
* Update doc, add error, move baseline to detect namespace, ignore findings instead of reactively filter them out
* Update detect/detect.go
Co-authored-by: Zachary Rice <zricezrice@gmail.com>
* Update IsNew function (no check on tags - omit finger print check)
* Update README.md
Co-authored-by: Zachary Rice <zricezrice@gmail.com>
* Update examples in readme to make it ensure it's clear that a baseline is indeed a gitleaks report
* Fix test - updated tags doesn't make a finding new
* Add missing err assignment
* Allow scanner to continue without baseline if file is malformed
* Fix typo in comment
* Fix control flow err. (Real life testing)
* Fix wording
* Auto-ignore baseline path
* refactor: more precise rule for private keys
The current regex didn't match PGP private keys anymore, since they start with `BEGIN PGP PRIVATE KEY BLOCK` and the `BLOCK` never matched for the existing regex. I've made that part optional so that all strings matching for the current regex will still match for the new regex.
* refactor: more precise rule for private keys
Co-authored-by: Fabian F Groß <fabian.f.gross@deutschebahn.com>
* Add sidekiq rules
* Added two new rules for sidekiq
* Other: Add keywords to square rules per Zach's instructions
* Validate now works, but test suite is failing
* Tests are now passing
* Add Sidekiq Rules: Ran go fmt
* * After resolving conflicts, had to rerun the rule generator to add back the semicolon char
* After running tests, had to fix one line in testdata/expected/report/sarif_simple.sarif
* * Added keywords to simple.toml for sidekiq-sensitive-url so that the rule matches what is in gitleaks.toml
Co-authored-by: Andrew Weiner <aweiner@frontrush.com>
* init
* working on default and path config extensions
* adding trace log level, consolidating some code
* cleaning things up, updating generate package
* fix tests
* formatting
* adding tests for extend
* extend not extends
* formatting
* only allow usedefault or path to be set
* update readme
* add note about allowlists
* more readme, expand env var for path
* actually dont support env var. ez attack
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions
* remove ssns from allowlist since default config does not detect ssn
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions
* use func instead of function in stopwords