Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
fix(handlers): workaround for max archive depth (#2965)
Richard Gomez235b27964b96
diff --git a/pkg/handlers/archive.go b/pkg/handlers/archive.goindex 61b163322..77677634d 100644--- a/pkg/handlers/archive.go+++ b/pkg/handlers/archive.go@@ -20,7 +20,9 @@ const ()var (- maxDepth = 5+ // NOTE: This is a temporary workaround for |openArchive| incrementing depth twice per archive.+ // See: https://github.com/trufflesecurity/trufflehog/issues/2942+ maxDepth = 5 * 2maxSize = 2 << 30 // 2 GBmaxTimeout = time.Duration(30) * time.Second)