File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,12 @@ package inspector
33import (
44 "encoding/json"
55 "fmt"
6- "github.com/murphysecurity/murphysec/env"
7- "github.com/murphysecurity/murphysec/model"
86 "strings"
97 "time"
8+
9+ "github.com/murphysecurity/murphysec/env"
10+ "github.com/murphysecurity/murphysec/model"
11+ "github.com/murphysecurity/murphysec/utils/must"
1012)
1113
1214type DependencyGraph struct {
@@ -91,6 +93,11 @@ func BuildSpdx(task *model.ScanTask) []byte {
9193 "referenceType" : "purl" ,
9294 })
9395 }
96+ externalRefs = append (externalRefs , map [string ]any {
97+ "referenceCategory" : "PACKAGE-MANAGER" ,
98+ "referenceLocator" : string (must .A (json .Marshal (node ))),
99+ "referenceType" : "murphyjson" ,
100+ })
94101 if len (externalRefs ) != 0 {
95102 m ["externalRefs" ] = externalRefs
96103 }
You can’t perform that action at this time.
0 commit comments