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

This commit is contained in:
Richard Gomez 2024-06-14 11:18:05 -04:00 committed by GitHub
parent 523a915143
commit 235b27964b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
)