We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 140238d commit 453d9c4Copy full SHA for 453d9c4
1 file changed
inspector/textual_formatter.go
@@ -3,10 +3,12 @@ package inspector
3
import (
4
"encoding/json"
5
"fmt"
6
- "github.com/murphysecurity/murphysec/env"
7
- "github.com/murphysecurity/murphysec/model"
8
"strings"
9
"time"
+
+ "github.com/murphysecurity/murphysec/env"
10
+ "github.com/murphysecurity/murphysec/model"
11
+ "github.com/murphysecurity/murphysec/utils/must"
12
)
13
14
type DependencyGraph struct {
@@ -91,6 +93,11 @@ func BuildSpdx(task *model.ScanTask) []byte {
91
93
"referenceType": "purl",
92
94
})
95
}
96
+ externalRefs = append(externalRefs, map[string]any{
97
+ "referenceCategory": "PACKAGE-MANAGER",
98
+ "referenceLocator": string(must.A(json.Marshal(node))),
99
+ "referenceType": "murphyjson",
100
+ })
101
if len(externalRefs) != 0 {
102
m["externalRefs"] = externalRefs
103
0 commit comments