Skip to content

Commit

Permalink
add retire js update
Browse files Browse the repository at this point in the history
  • Loading branch information
ysebyy committed Aug 21, 2024
1 parent 5974368 commit 30a7be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/collectors/retirejs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 30a7be9

Please sign in to comment.