Update README.md

This commit is contained in:
Zachary Rice authored and GitHub committed 2021-03-05 16:40:07 -05:00
1 parent 5ef4e336ce
commit a27a08904a
1 file changed
+31 -34
+31 -34
View File
@@ -50,44 +50,41 @@ Usage:
gitleaks [OPTIONS] gitleaks [OPTIONS]
Application Options: Application Options:
-v, --verbose Show verbose output from scan -v, --verbose Show verbose output from scan
-q, --quiet Sets log level to error and only output leaks, one json object per line -q, --quiet Sets log level to error and only output leaks, one json object per line
-r, --repo-url= Repository URL -r, --repo-url= Repository URL
-p, --path= Path to directory (repo if contains .git) or file -p, --path= Path to directory (repo if contains .git) or file
-c, --config-path= Path to config -c, --config-path= Path to config
--repo-config-path= Path to gitleaks config relative to repo root --repo-config-path= Path to gitleaks config relative to repo root
--version Version number --clone-path= Path to clone repo to disk
--username= Username for git repo --version Version number
--password= Password for git repo --username= Username for git repo
--access-token= Access token for git repo --password= Password for git repo
--threads= Maximum number of threads gitleaks spawns --access-token= Access token for git repo
--ssh-key= Path to ssh key used for auth --threads= Maximum number of threads gitleaks spawns
--unstaged Run gitleaks on unstaged code --ssh-key= Path to ssh key used for auth
--branch= Branch to scan --unstaged Run gitleaks on unstaged code
--redact Redact secrets from log messages and leaks --branch= Branch to scan
--debug Log debug messages --redact Redact secrets from log messages and leaks
--leaks-exit-code= Exit code when leaks have been encountered (default: 1) --debug Log debug messages
--no-git Treat git repos as plain directories and scan those --no-git Treat git repos as plain directories and scan those files
files --leaks-exit-code= Exit code when leaks have been encountered (default: 1)
--append-repo-config Append the provided or default config with the repo config. --append-repo-config Append the provided or default config with the repo config.
--additional-config= Path to an additional gitleaks config to append with an existing config. Can be used with --append-repo-config to append up to three configurations --additional-config= Path to an additional gitleaks config to append with an existing config. Can be used with --append-repo-config to append up to three configurations
-o, --report= Report output path -o, --report= Report output path
-f, --format= JSON, CSV, SARIF (default: json) -f, --format= JSON, CSV, SARIF (default: json)
--files-at-commit= Sha of commit to scan all files at commit --files-at-commit= Sha of commit to scan all files at commit
--commit= Sha of commit to scan or "latest" to scan the last --commit= Sha of commit to scan or "latest" to scan the last commit of the repository
commit of the repository --commits= Comma separated list of a commits to scan
--commits= Comma separated list of a commits to scan --commits-file= Path to file of line separated list of commits to scan
--commits-file= Path to file of line separated list of commits to scan --commit-from= Commit to start scan from
--commit-from= Commit to start scan from --commit-to= Commit to stop scan
--commit-to= Commit to stop scan --commit-since= Scan commits more recent than a specific date. Ex: '2006-01-02' or '2006-01-02T15:04:05-0700' format.
--commit-since= Scan commits more recent than a specific date. Ex: --commit-until= Scan commits older than a specific date. Ex: '2006-01-02' or '2006-01-02T15:04:05-0700' format.
'2006-01-02' or '2006-01-02T15:04:05-0700' format. --depth= Number of commits to scan
--commit-until= Scan commits older than a specific date. Ex:
'2006-01-02' or '2006-01-02T15:04:05-0700' format.
--depth= Number of commits to scan
Help Options: Help Options:
-h, --help Show this help message -h, --help Show this help message
``` ```