mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
fix(handlers): workaround for max archive depth (#2965)
This commit is contained in:
parent
523a915143
commit
235b27964b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue