You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,8 @@ var (
99
99
gitScanBranch=gitScan.Flag("branch", "Branch to scan.").String()
100
100
gitScanMaxDepth=gitScan.Flag("max-depth", "Maximum depth of commits to scan.").Int()
101
101
gitScanBare=gitScan.Flag("bare", "Scan bare repository (e.g. useful while using in pre-receive hooks)").Bool()
102
+
gitClonePath=gitScan.Flag("clone-path", "Custom path where the repository should be cloned (default: temp dir).").String()
103
+
gitNoCleanup=gitScan.Flag("no-cleanup", "Do not delete cloned repositories after scanning (can only be used with --clone-path).").Bool()
102
104
_=gitScan.Flag("allow", "No-op flag for backwards compat.").Bool()
103
105
_=gitScan.Flag("entropy", "No-op flag for backwards compat.").Bool()
104
106
_=gitScan.Flag("regex", "No-op flag for backwards compat.").Bool()
@@ -120,6 +122,8 @@ var (
120
122
githubScanGistComments=githubScan.Flag("gist-comments", "Include gist comments in scan.").Bool()
121
123
githubCommentsTimeframeDays=githubScan.Flag("comments-timeframe", "Number of days in the past to review when scanning issue, PR, and gist comments.").Uint32()
122
124
githubAuthInUrl=githubScan.Flag("auth-in-url", "Embed authentication credentials in repository URLs instead of using secure HTTP headers").Bool()
125
+
githubClonePath=githubScan.Flag("clone-path", "Custom path where the repository should be cloned (default: temp dir).").String()
126
+
githubNoCleanup=githubScan.Flag("no-cleanup", "Do not delete cloned repositories after scanning (can only be used with --clone-path).").Bool()
githubExperimentalScan=cli.Command("github-experimental", "Run an experimental GitHub scan. Must specify at least one experimental sub-module to run: object-discovery.")
@@ -142,6 +146,8 @@ var (
142
146
gitlabScanIncludeRepos=gitlabScan.Flag("include-repos", `Repositories to include in an org scan. This can also be a glob pattern. You can repeat this flag. Must use Gitlab repo full name. Example: "trufflesecurity/trufflehog", "trufflesecurity/t*"`).Strings()
143
147
gitlabScanExcludeRepos=gitlabScan.Flag("exclude-repos", `Repositories to exclude in an org scan. This can also be a glob pattern. You can repeat this flag. Must use Gitlab repo full name. Example: "trufflesecurity/driftwood", "trufflesecurity/d*"`).Strings()
144
148
gitlabAuthInUrl=gitlabScan.Flag("auth-in-url", "Embed authentication credentials in repository URLs instead of using secure HTTP headers").Bool()
149
+
gitlabClonePath=gitlabScan.Flag("clone-path", "Custom path where the repository should be cloned (default: temp dir)").String()
150
+
gitlabNoCleanup=gitlabScan.Flag("no-cleanup", "Do not delete cloned repositories after scanning (can only be used with --clone-path).").Bool()
145
151
146
152
filesystemScan=cli.Command("filesystem", "Find credentials in a filesystem.")
147
153
filesystemPaths=filesystemScan.Arg("path", "Path to file or directory to scan.").Strings()
0 commit comments