mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Audit commits based on date/time parameters (#385)
* time based audit * fixing SIGSEGV * adding options for date and time format + tests * Update repo.go * Update github.go * rebase + tests update
This commit is contained in:
1 parent
3e88ac6726
commit
e0f6399d5c
6 files changed
+151
-1
No files matched your search
@@ -52,6 +52,8 @@ type Options struct {
|
||||
PrettyPrint bool `long:"pretty" description:"Pretty print json if leaks are present"`
|
||||
CommitFrom string `long:"commit-from" description:"Commit to start audit from"`
|
||||
CommitTo string `long:"commit-to" description:"Commit to stop audit"`
|
||||
CommitSince string `long:"commit-since" description:"Audit commits more recent than a specific date. Ex: '2006-01-02' or '2006-01-02T15:04:05-0700' format."`
|
||||
CommitUntil string `long:"commit-until" description:"Audit commits older than a specific date. Ex: '2006-01-02' or '2006-01-02T15:04:05-0700' format."`
|
||||
Timeout string `long:"timeout" description:"Time allowed per audit. Ex: 10us, 30s, 1m, 1h10m1s"`
|
||||
Depth int `long:"depth" description:"Number of commits to audit"`
|
||||
|
||||
|
||||
Reference in new issue
Block a user