Skip to content

Find, verify, and analyze leaked credentials

fix(handlers): workaround for max archive depth (#2965)

Richard Gomez235b27964b96
diff --git a/pkg/handlers/archive.go b/pkg/handlers/archive.go
index 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 * 2
maxSize = 2 << 30 // 2 GB
maxTimeout = time.Duration(30) * time.Second
)