mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
removing some options
This commit is contained in:
1 parent
b6b3e768dc
commit
078b951a43
2 files changed
+1
-11
No files matched your search
@@ -22,22 +22,14 @@ Gitleaks audits local and remote repos by running regex checks against all commi
|
|||||||
usage: gitleaks [options] <URL>/<path_to_repo>
|
usage: gitleaks [options] <URL>/<path_to_repo>
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
Modes
|
|
||||||
-u --user Git user mode
|
-u --user Git user mode
|
||||||
-r --repo Git repo mode
|
-r --repo Git repo mode
|
||||||
-o --org Git organization mode
|
-o --org Git organization mode
|
||||||
-l --local Local mode, gitleaks will look for local repo in <path>
|
-l --local Local mode, gitleaks will look for local repo in <path>
|
||||||
|
-t --temp Clone to temporary directory
|
||||||
Logging
|
|
||||||
--log=<INT> 0: Debug, 1: Info, 3: Error
|
|
||||||
-v --verbose Verbose mode, will output leaks as gitleaks finds them
|
-v --verbose Verbose mode, will output leaks as gitleaks finds them
|
||||||
|
|
||||||
Locations
|
|
||||||
--report_path=<STR> Report output, default $GITLEAKS_HOME/report
|
--report_path=<STR> Report output, default $GITLEAKS_HOME/report
|
||||||
--clone_path=<STR> Gitleaks will clone repos here, default $GITLEAKS_HOME/clones
|
--clone_path=<STR> Gitleaks will clone repos here, default $GITLEAKS_HOME/clones
|
||||||
|
|
||||||
Other
|
|
||||||
-t --temp Clone to temporary directory
|
|
||||||
--concurrency=<INT> Upper bound on concurrent diffs
|
--concurrency=<INT> Upper bound on concurrent diffs
|
||||||
--since=<STR> Commit to stop at
|
--since=<STR> Commit to stop at
|
||||||
--b64Entropy=<INT> Base64 entropy cutoff (default is 70)
|
--b64Entropy=<INT> Base64 entropy cutoff (default is 70)
|
||||||
|
|||||||
@@ -188,8 +188,6 @@ func (opts *Options) parseOptions(args []string) error {
|
|||||||
opts.ReportPath = value
|
opts.ReportPath = value
|
||||||
} else if match, value := opts.optString(arg, "--clone-path="); match {
|
} else if match, value := opts.optString(arg, "--clone-path="); match {
|
||||||
opts.ClonePath = value
|
opts.ClonePath = value
|
||||||
} else if match, value := opts.optInt(arg, "--log="); match {
|
|
||||||
opts.LogLevel = value
|
|
||||||
} else if match, value := opts.optInt(arg, "--b64Entropy="); match {
|
} else if match, value := opts.optInt(arg, "--b64Entropy="); match {
|
||||||
opts.B64EntropyCutoff = value
|
opts.B64EntropyCutoff = value
|
||||||
} else if match, value := opts.optInt(arg, "--hexEntropy="); match {
|
} else if match, value := opts.optInt(arg, "--hexEntropy="); match {
|
||||||
|
|||||||
Reference in new issue
Block a user