Skip to content

Commit 6eaad03

Browse files
authored
0 to 5 - notes on recursive decoding (gitleaks#1994)
1 parent 09242ce commit 6eaad03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func init() {
8888
rootCmd.PersistentFlags().Bool("no-banner", false, "suppress banner")
8989
rootCmd.PersistentFlags().StringSlice("enable-rule", []string{}, "only enable specific rules by id")
9090
rootCmd.PersistentFlags().StringP("gitleaks-ignore-path", "i", ".", "path to .gitleaksignore file or folder containing one")
91-
rootCmd.PersistentFlags().Int("max-decode-depth", 0, "allow recursive decoding up to this depth (default \"0\", no decoding is done)")
91+
rootCmd.PersistentFlags().Int("max-decode-depth", 5, "allow recursive decoding up to this depth")
9292
rootCmd.PersistentFlags().Int("max-archive-depth", 0, "allow scanning into nested archives up to this depth (default \"0\", no archive traversal is done)")
9393
rootCmd.PersistentFlags().Int("timeout", 0, "set a timeout for gitleaks commands in seconds (default \"0\", no timeout is set)")
9494

0 commit comments

Comments
 (0)