From 5eeaa2eb707dc021d09ea51b2b91d5732b819333 Mon Sep 17 00:00:00 2001 From: kunlongli Date: Tue, 25 Apr 2023 19:54:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20dependency-check=E6=94=AF=E6=8C=81npm?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=20#35?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dependency-check/pkg/scan_executor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependency-check/pkg/scan_executor.go b/dependency-check/pkg/scan_executor.go index b3849b0..5c2d5fe 100644 --- a/dependency-check/pkg/scan_executor.go +++ b/dependency-check/pkg/scan_executor.go @@ -28,7 +28,7 @@ func (e DependencyCheckExecutor) Execute(config *object.ToolConfig, file *os.Fil if err := npmPrepare(file); err != nil { return nil, err } - inputFile = filepath.Join(filepath.Dir(filepath.Dir(inputFile)), "package-lock.json") + inputFile = filepath.Join(filepath.Dir(inputFile), "package-lock.json") } // 下载漏洞库