* add --max-target-megabytes : maximum size for a file/blob to be scanned
* add --max-target-megabytes : maximum size for a file/blob to be scanned
* add --max-target-megabytes : maximum size for a file/blob to be scanned
* adjust readme comment
* fix on prem
* silence warning about unchecked errors
* go-fmt change to add newline
* Zerolog requires you to always call .Msg()
When logging with zerolog, you need to always end with .Msg(), even if
you just pass an empty string.
If you read the README on https://github.com/rs/zerolog, they write:
> It is very important to note that when using the zerolog
> chaining API, as shown above (log.Info().Msg("hello world"), the
> chain must have either the Msg or Msgf method call. If you
> forget to add either of these, the log will not occur and there
> is no compile time error to alert you of this.
* Create empty slice without literal
* Fix variable / package name collision with literal
instead of having a variable named "config", which collides with the
package name "config", just pass a literal config.Config{} struct to the
function
* Replace call to deprecated ioutil.ReadAll()
Use io.ReadAll() instead
* Check error when closing jsonFile
Make it a warning and log error
* 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>