mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
cleaning up
This commit is contained in:
1 parent
c4da547503
commit
df8a2d35a8
4 files changed
+4
-8
No files matched your search
@@ -20,8 +20,3 @@ build-all:
|
|||||||
env GOOS="linux" GOARCH="mips" go build -o "build/gitleaks-linux-mips"
|
env GOOS="linux" GOARCH="mips" go build -o "build/gitleaks-linux-mips"
|
||||||
env GOOS="linux" GOARCH="mips" go build -o "build/gitleaks-linux-mips"
|
env GOOS="linux" GOARCH="mips" go build -o "build/gitleaks-linux-mips"
|
||||||
env GOOS="darwin" GOARCH="amd64" go build -o "build/gitleaks-darwin-amd64"
|
env GOOS="darwin" GOARCH="amd64" go build -o "build/gitleaks-darwin-amd64"
|
||||||
benchmark:
|
|
||||||
go test -run=Benchmark -bench=. -benchtime=5s
|
|
||||||
benchmark-fast:
|
|
||||||
go test -bench=BenchmarkAuditLeakRepo -run=BenchmarkAuditLeakRepo$
|
|
||||||
|
|
||||||
@@ -67,6 +67,7 @@ tags = ["key", "Slack"]
|
|||||||
files = [
|
files = [
|
||||||
"(.*?)(jpg|gif|doc|pdf|bin)$"
|
"(.*?)(jpg|gif|doc|pdf|bin)$"
|
||||||
]
|
]
|
||||||
|
|
||||||
#commits = [
|
#commits = [
|
||||||
# "whitelisted-commit1",
|
# "whitelisted-commit1",
|
||||||
# "whitelisted-commit2",
|
# "whitelisted-commit2",
|
||||||
|
|||||||
@@ -125,9 +125,6 @@ func (opts *Options) guard() error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if opts.Entropy > 8 {
|
|
||||||
// return fmt.Errorf("The maximum level of entropy is 8")
|
|
||||||
// }
|
|
||||||
if opts.Report != "" {
|
if opts.Report != "" {
|
||||||
if !strings.HasSuffix(opts.Report, ".json") && !strings.HasSuffix(opts.Report, ".csv") {
|
if !strings.HasSuffix(opts.Report, ".json") && !strings.HasSuffix(opts.Report, ".csv") {
|
||||||
return fmt.Errorf("Report should be a .json or .csv file")
|
return fmt.Errorf("Report should be a .json or .csv file")
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ func (repoInfo *RepoInfo) clone() error {
|
|||||||
} else if repoInfo.path != "" {
|
} else if repoInfo.path != "" {
|
||||||
log.Infof("opening %s", opts.RepoPath)
|
log.Infof("opening %s", opts.RepoPath)
|
||||||
repo, err = git.PlainOpen(repoInfo.path)
|
repo, err = git.PlainOpen(repoInfo.path)
|
||||||
|
if err != nil {
|
||||||
|
log.Errorf("unable to open %s", opts.RepoPath)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// cloning to memory
|
// cloning to memory
|
||||||
log.Infof("cloning %s", opts.Repo)
|
log.Infof("cloning %s", opts.Repo)
|
||||||
|
|||||||
Reference in new issue
Block a user