mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
skip windowS
This commit is contained in:
1 parent
e0ea9cefde
commit
d5e7364bcf
1 file changed
+2
-2
+2
-2
@@ -42,8 +42,8 @@ func (d *Detector) detectScanTarget(scanTarget sources.ScanTarget) error {
|
|||||||
logger := logging.With().Str("path", display).Logger()
|
logger := logging.With().Str("path", display).Logger()
|
||||||
logger.Trace().Msg("Scanning path")
|
logger.Trace().Msg("Scanning path")
|
||||||
|
|
||||||
// --- Archive branch: extract and reschedule children ---
|
// skipping windows archives for now
|
||||||
if isArchive(scanTarget.Path) {
|
if isArchive(scanTarget.Path) && !isWindows {
|
||||||
logger.Debug().Msg("Found archive")
|
logger.Debug().Msg("Found archive")
|
||||||
|
|
||||||
targets, tmpArchiveDir, err := extractArchive(scanTarget.Path)
|
targets, tmpArchiveDir, err := extractArchive(scanTarget.Path)
|
||||||
|
|||||||
Reference in new issue
Block a user