* fix: ignore baseline if path was not relative in source
Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
* test: ignore test secret
---------
Signed-off-by: Raffael Sahli <raffael.sahli@doodle.com>
* 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
* 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
* 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
The output of time.String() depends on the runtime environment and should only be used for debugging.
This commit ensures that a well-defined UTC time is written to the report.