mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
160015b872 | ||
|
|
abdf2c47f0 | ||
|
|
8536f16ceb |
No files matched your search
@@ -1,6 +1,10 @@
|
|||||||
CHANGELOG
|
CHANGELOG
|
||||||
=========
|
=========
|
||||||
|
|
||||||
|
1.11.1
|
||||||
|
----
|
||||||
|
- fix commit whitelist logic
|
||||||
|
|
||||||
1.11.0
|
1.11.0
|
||||||
-----
|
-----
|
||||||
- Commit depth option
|
- Commit depth option
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ type gitDiff struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const defaultGithubURL = "https://api.github.com/"
|
const defaultGithubURL = "https://api.github.com/"
|
||||||
const version = "1.11.0"
|
const version = "1.11.1"
|
||||||
const errExit = 2
|
const errExit = 2
|
||||||
const leakExit = 1
|
const leakExit = 1
|
||||||
const defaultConfig = `
|
const defaultConfig = `
|
||||||
@@ -462,6 +462,7 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
|
|||||||
commitCount = commitCount + 1
|
commitCount = commitCount + 1
|
||||||
totalCommits = totalCommits + 1
|
totalCommits = totalCommits + 1
|
||||||
if whiteListCommits[c.Hash.String()] {
|
if whiteListCommits[c.Hash.String()] {
|
||||||
|
prevCommit = c
|
||||||
log.Infof("skipping commit: %s\n", c.Hash.String())
|
log.Infof("skipping commit: %s\n", c.Hash.String())
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
@@ -552,11 +553,6 @@ func auditGitReference(repo *RepoDescriptor, ref *plumbing.Reference) []Leak {
|
|||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
commitWg.Wait()
|
commitWg.Wait()
|
||||||
|
|
||||||
if opts.Verbose {
|
|
||||||
log.Infof("%d commits inspected for %s", commitCount, repo.name)
|
|
||||||
}
|
|
||||||
|
|
||||||
return leaks
|
return leaks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user