mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
first pass at archive handling
This commit is contained in:
1 parent
b6cc71aa3a
commit
770baf7458
12 files changed
+679
-105
No files matched your search
+13
-2
@@ -12,8 +12,19 @@ import (
|
||||
)
|
||||
|
||||
type ScanTarget struct {
|
||||
Path string
|
||||
Symlink string
|
||||
Path string
|
||||
Symlink string
|
||||
VirtualPath string
|
||||
|
||||
Source string
|
||||
|
||||
// The following items are only used for git archive scans
|
||||
// (since we have to treat them like regular dir scans)
|
||||
GitInfo GitInfo
|
||||
|
||||
// TODO one day use a single Metadata map
|
||||
// instead of git fields
|
||||
// Metadata map[string]string
|
||||
}
|
||||
|
||||
var isWindows = runtime.GOOS == "windows"
|
||||
|
||||
Reference in new issue
Block a user