mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
Add handlerOpts back (#2258)
This commit is contained in:
parent
ceff786db4
commit
78d8dd3abf
1 changed files with 3 additions and 1 deletions
|
@ -1014,6 +1014,8 @@ func (s *Git) handleBinary(ctx context.Context, gitDir string, reporter sources.
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var handlerOpts []handlers.Option
|
||||||
|
|
||||||
if s.skipArchives {
|
if s.skipArchives {
|
||||||
handlerOpts = append(handlerOpts, handlers.WithSkipArchives(true))
|
handlerOpts = append(handlerOpts, handlers.WithSkipArchives(true))
|
||||||
}
|
}
|
||||||
|
@ -1053,7 +1055,7 @@ func (s *Git) handleBinary(ctx context.Context, gitDir string, reporter sources.
|
||||||
}
|
}
|
||||||
defer reader.Close()
|
defer reader.Close()
|
||||||
|
|
||||||
if handlers.HandleFile(fileCtx, reader, chunkSkel, reporter) {
|
if handlers.HandleFile(fileCtx, reader, chunkSkel, reporter, handlerOpts...) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue