Skip to content

Find, verify, and analyze leaked credentials

Add ssh:/ URI to docs (#732)

Bill Rich0d8a154330a8
diff --git a/README.md b/README.md
index 6c5d0c6f9..fee2f3073 100644
--- a/README.md
+++ b/README.md
@@ -135,7 +135,7 @@ Flags:
--regex No-op flag for backwards compat.
Args:
- <uri> Git repository URL. https:// or file:// schema expected.
+ <uri> Git repository URL. https://, file://, or ssh:// schema expected.
```
For example, to scan a `git` repository, start with
diff --git a/main.go b/main.go
index 452dd8ad9..2521213ce 100644
--- a/main.go
+++ b/main.go
@@ -46,7 +46,7 @@ var (
fail = cli.Flag("fail", "Exit with code 183 if results are found.").Bool()
gitScan = cli.Command("git", "Find credentials in git repositories.")
- gitScanURI = gitScan.Arg("uri", "Git repository URL. https:// or file:// schema expected.").Required().String()
+ gitScanURI = gitScan.Arg("uri", "Git repository URL. https://, file://, or ssh:// schema expected.").Required().String()
gitScanIncludePaths = gitScan.Flag("include-paths", "Path to file with newline separated regexes for files to include in scan.").Short('i').String()
gitScanExcludePaths = gitScan.Flag("exclude-paths", "Path to file with newline separated regexes for files to exclude in scan.").Short('x').String()
gitScanSinceCommit = gitScan.Flag("since-commit", "Commit to start scan from.").String()