From a7a561166d64f579a9e9f358c49f654d4ffcd921 Mon Sep 17 00:00:00 2001 From: kunlongli Date: Tue, 28 Mar 2023 21:17:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9filepath-search=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E8=BE=93=E5=87=BA=E6=8A=A5=E5=91=8A=E7=9A=84=E6=BC=8F?= =?UTF-8?q?=E6=B4=9E=E5=90=8D=E5=9B=BA=E5=AE=9A=E4=B8=BAfilepath?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- filepath-search/pkg/executor.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/filepath-search/pkg/executor.go b/filepath-search/pkg/executor.go index 10a5b4a..c4b6f7d 100644 --- a/filepath-search/pkg/executor.go +++ b/filepath-search/pkg/executor.go @@ -68,11 +68,10 @@ func scan(filepath string, regex string) ([]object.SecurityResult, error) { if err := walk(l, func(filePath string, info os.FileInfo, reader io.Reader) error { if reg.MatchString(filePath) { - vulId := "fp-" + filePath securityResults = append(securityResults, object.SecurityResult{ - VulId: vulId, - CveId: vulId, - VulName: vulId, + VulId: "filepath", + CveId: "filepath", + VulName: "filepath", Path: filePath, PkgName: filePath, PkgVersions: []string{},