From 30a7be9076a3c2be7eea2fe918962c8e426aecbd Mon Sep 17 00:00:00 2001 From: ysebyy Date: Wed, 21 Aug 2024 11:39:27 +0300 Subject: [PATCH] add retire js update --- pkg/collectors/retirejs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collectors/retirejs.go b/pkg/collectors/retirejs.go index 2db6b72..b7621c5 100644 --- a/pkg/collectors/retirejs.go +++ b/pkg/collectors/retirejs.go @@ -17,7 +17,7 @@ type RetireJS struct{} // GenerateBOM implements Collector interface. func (r RetireJS) GenerateBOM(ctx context.Context, repositoryPath string) (*cdx.BOM, error) { // Retire JS outputs results to stderr by default - redirect to stdout with 2>&1 - const cmdTemplate = "retire --js --jspath %s --outputformat cyclonedx --exitwith 0 2>&1" + const cmdTemplate = "retire --jspath %s --outputformat cyclonedx --exitwith 0 2>&1" re := regexp.MustCompile(`^[\w./-]*$`) if !re.MatchString(repositoryPath) {