mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
working tests out
This commit is contained in:
1 parent
256ace38d7
commit
7bd55e33b5
10 files changed
+144
-141
No files matched your search
+8
-3
@@ -27,9 +27,10 @@ func init() {
|
||||
threads = defaultThreadNum
|
||||
}
|
||||
|
||||
// Report is
|
||||
// Report can be exported as a json or csv. Used for logging informationn
|
||||
// about the audit, (duration and # of commits)
|
||||
type Report struct {
|
||||
Leaks []*Leak
|
||||
Leaks []Leak
|
||||
Duration string
|
||||
Commits int64
|
||||
}
|
||||
@@ -37,7 +38,7 @@ type Report struct {
|
||||
// Run is the entry point for gitleaks
|
||||
func Run(optsL *Options) (*Report, error) {
|
||||
var (
|
||||
leaks []*Leak
|
||||
leaks []Leak
|
||||
err error
|
||||
)
|
||||
|
||||
@@ -47,6 +48,10 @@ func Run(optsL *Options) (*Report, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if opts.ValidateConfig {
|
||||
log.Info("valid gitleaks config")
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
if opts.Disk {
|
||||
// temporary directory where all the gitleaks plain clones will reside
|
||||
|
||||
Reference in new issue
Block a user