first pass at archive handling

This commit is contained in:
Zach committed 2025-04-28 09:39:22 -05:00
1 parent b6cc71aa3a
commit 770baf7458
12 files changed
+679 -105

No files matched your search

+22
View File
@@ -799,6 +799,28 @@ func TestFromFiles(t *testing.T) {
},
},
},
{
source: filepath.Join(repoBasePath, "archive"),
cfgName: "simple",
expectedFindings: []report.Finding{
{
RuleID: "aws-access-key",
Description: "AWS Access Key",
StartLine: 20,
EndLine: 20,
StartColumn: 16,
EndColumn: 35,
Line: "\n\tawsToken := \"AKIALALEMEL33243OLIA\"",
Match: "AKIALALEMEL33243OLIA",
Secret: "AKIALALEMEL33243OLIA",
File: "archive.zip/main.go",
SymlinkFile: "",
Tags: []string{"key", "AWS"},
Entropy: 3.0841837,
Fingerprint: "archive.zip/main.go:aws-access-key:20",
},
},
},
}
for _, tt := range tests {