Skip to content

Commit f3375ef

Browse files
author
Trong Nhan Mai
committed
chore: add purl field into dependency configs
Signed-off-by: Trong Nhan Mai <[email protected]>
1 parent 0722862 commit f3375ef

6 files changed

+119
-130
lines changed

tests/dependency_analyzer/expected_results/apache_maven_with_sbom_provided.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"id": "org.junit.jupiter:junit-jupiter-engine",
4+
"purl": "",
45
"path": "https://github.com/junit-team/junit5",
56
"branch": "",
67
"digest": "",
@@ -9,6 +10,7 @@
910
},
1011
{
1112
"id": "org.hamcrest:hamcrest-core",
13+
"purl": "",
1214
"path": "https://github.com/hamcrest/JavaHamcrest",
1315
"branch": "",
1416
"digest": "",
@@ -17,6 +19,7 @@
1719
},
1820
{
1921
"id": "org.apache.maven:maven-model",
22+
"purl": "",
2023
"path": "",
2124
"branch": "",
2225
"digest": "",
@@ -25,6 +28,7 @@
2528
},
2629
{
2730
"id": "org.apache.maven:maven-artifact",
31+
"purl": "",
2832
"path": "",
2933
"branch": "",
3034
"digest": "",
@@ -33,6 +37,7 @@
3337
},
3438
{
3539
"id": "org.apache.maven:maven-plugin-api",
40+
"purl": "",
3641
"path": "",
3742
"branch": "",
3843
"digest": "",
@@ -41,6 +46,7 @@
4146
},
4247
{
4348
"id": "org.apache.maven:maven-builder-support",
49+
"purl": "",
4450
"path": "",
4551
"branch": "",
4652
"digest": "",
@@ -49,6 +55,7 @@
4955
},
5056
{
5157
"id": "org.apache.maven:maven-model-transform",
58+
"purl": "",
5259
"path": "",
5360
"branch": "",
5461
"digest": "",
@@ -57,6 +64,7 @@
5764
},
5865
{
5966
"id": "org.apache.maven:maven-model-builder",
67+
"purl": "",
6068
"path": "",
6169
"branch": "",
6270
"digest": "",
@@ -65,6 +73,7 @@
6573
},
6674
{
6775
"id": "org.apache.maven:maven-settings",
76+
"purl": "",
6877
"path": "",
6978
"branch": "",
7079
"digest": "",
@@ -73,6 +82,7 @@
7382
},
7483
{
7584
"id": "org.apache.maven:maven-settings-builder",
85+
"purl": "",
7686
"path": "",
7787
"branch": "",
7888
"digest": "",
@@ -81,6 +91,7 @@
8191
},
8292
{
8393
"id": "org.apache.maven:maven-toolchain-model",
94+
"purl": "",
8495
"path": "",
8596
"branch": "",
8697
"digest": "",
@@ -89,6 +100,7 @@
89100
},
90101
{
91102
"id": "org.apache.maven:maven-toolchain-builder",
103+
"purl": "",
92104
"path": "",
93105
"branch": "",
94106
"digest": "",
@@ -97,6 +109,7 @@
97109
},
98110
{
99111
"id": "org.apache.maven:maven-repository-metadata",
112+
"purl": "",
100113
"path": "",
101114
"branch": "",
102115
"digest": "",
@@ -105,6 +118,7 @@
105118
},
106119
{
107120
"id": "org.apache.maven:maven-resolver-provider",
121+
"purl": "",
108122
"path": "",
109123
"branch": "",
110124
"digest": "",
@@ -113,6 +127,7 @@
113127
},
114128
{
115129
"id": "org.apache.maven:maven-core",
130+
"purl": "",
116131
"path": "",
117132
"branch": "",
118133
"digest": "",
@@ -121,6 +136,7 @@
121136
},
122137
{
123138
"id": "org.apache.maven:maven-slf4j-wrapper",
139+
"purl": "",
124140
"path": "",
125141
"branch": "",
126142
"digest": "",
@@ -129,6 +145,7 @@
129145
},
130146
{
131147
"id": "org.apache.maven:maven-slf4j-provider",
148+
"purl": "",
132149
"path": "",
133150
"branch": "",
134151
"digest": "",
@@ -137,6 +154,7 @@
137154
},
138155
{
139156
"id": "org.apache.maven:maven-embedder",
157+
"purl": "",
140158
"path": "",
141159
"branch": "",
142160
"digest": "",
@@ -145,6 +163,7 @@
145163
},
146164
{
147165
"id": "org.apache.maven:maven-compat",
166+
"purl": "",
148167
"path": "",
149168
"branch": "",
150169
"digest": "",
@@ -153,6 +172,7 @@
153172
},
154173
{
155174
"id": "org.apache.maven:apache-maven",
175+
"purl": "",
156176
"path": "",
157177
"branch": "",
158178
"digest": "",

tests/dependency_analyzer/expected_results/cyclonedx_FasterXML_jackson-databind.json

Lines changed: 8 additions & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[
22
{
33
"id": "com.fasterxml.jackson.core:jackson-annotations",
4+
"purl": "",
45
"path": "https://github.com/FasterXML/jackson-annotations",
56
"branch": "",
67
"digest": "",
@@ -9,6 +10,7 @@
910
},
1011
{
1112
"id": "com.fasterxml.jackson.core:jackson-core",
13+
"purl": "",
1214
"path": "https://github.com/FasterXML/jackson-core",
1315
"branch": "",
1416
"digest": "",
@@ -17,6 +19,7 @@
1719
},
1820
{
1921
"id": "org.powermock:powermock-core",
22+
"purl": "",
2023
"path": "https://github.com/powermock/powermock",
2124
"branch": "",
2225
"digest": "",
@@ -25,6 +28,7 @@
2528
},
2629
{
2730
"id": "org.powermock:powermock-module-junit4",
31+
"purl": "",
2832
"path": "https://github.com/powermock/powermock",
2933
"branch": "",
3034
"digest": "",
@@ -33,6 +37,7 @@
3337
},
3438
{
3539
"id": "org.powermock:powermock-api-mockito2",
40+
"purl": "",
3641
"path": "https://github.com/powermock/powermock",
3742
"branch": "",
3843
"digest": "",
@@ -41,6 +46,7 @@
4146
},
4247
{
4348
"id": "com.google.guava:guava-testlib",
49+
"purl": "",
4450
"path": "https://github.com/google/guava",
4551
"branch": "",
4652
"digest": "",
@@ -49,6 +55,7 @@
4955
},
5056
{
5157
"id": "javax.measure:jsr-275",
58+
"purl": "",
5259
"path": "",
5360
"branch": "",
5461
"digest": "",
@@ -57,136 +64,7 @@
5764
},
5865
{
5966
"id": "junit:junit",
60-
"path": "https://github.com/junit-team/junit4",
61-
"branch": "",
62-
"digest": "",
63-
"note": "",
64-
"available": "AVAILABLE"
65-
}
66-
][
67-
{
68-
"id": "com.fasterxml.jackson.core:jackson-annotations",
69-
"path": "https://github.com/FasterXML/jackson-annotations",
70-
"branch": "",
71-
"digest": "",
72-
"note": "",
73-
"available": "AVAILABLE"
74-
},
75-
{
76-
"id": "com.fasterxml.jackson.core:jackson-core",
77-
"path": "https://github.com/FasterXML/jackson-core",
78-
"branch": "",
79-
"digest": "",
80-
"note": "",
81-
"available": "AVAILABLE"
82-
},
83-
{
84-
"id": "org.powermock:powermock-core",
85-
"path": "https://github.com/powermock/powermock",
86-
"branch": "",
87-
"digest": "",
88-
"note": "",
89-
"available": "AVAILABLE"
90-
},
91-
{
92-
"id": "org.powermock:powermock-module-junit4",
93-
"path": "https://github.com/powermock/powermock",
94-
"branch": "",
95-
"digest": "",
96-
"note": "https://github.com/powermock/powermock is already analyzed.",
97-
"available": "DUPLICATED REPO URL"
98-
},
99-
{
100-
"id": "org.powermock:powermock-api-mockito2",
101-
"path": "https://github.com/powermock/powermock",
102-
"branch": "",
103-
"digest": "",
104-
"note": "https://github.com/powermock/powermock is already analyzed.",
105-
"available": "DUPLICATED REPO URL"
106-
},
107-
{
108-
"id": "com.google.guava:guava-testlib",
109-
"path": "https://github.com/google/guava",
110-
"branch": "",
111-
"digest": "",
112-
"note": "",
113-
"available": "AVAILABLE"
114-
},
115-
{
116-
"id": "javax.measure:jsr-275",
117-
"path": "",
118-
"branch": "",
119-
"digest": "",
120-
"note": "Manual configuration required. Could not find SCM URL.",
121-
"available": "MISSING REPO URL"
122-
},
123-
{
124-
"id": "junit:junit",
125-
"path": "https://github.com/junit-team/junit4",
126-
"branch": "",
127-
"digest": "",
128-
"note": "",
129-
"available": "AVAILABLE"
130-
}
131-
][
132-
{
133-
"id": "com.fasterxml.jackson.core:jackson-annotations",
134-
"path": "https://github.com/FasterXML/jackson-annotations",
135-
"branch": "",
136-
"digest": "",
137-
"note": "",
138-
"available": "AVAILABLE"
139-
},
140-
{
141-
"id": "com.fasterxml.jackson.core:jackson-core",
142-
"path": "https://github.com/FasterXML/jackson-core",
143-
"branch": "",
144-
"digest": "",
145-
"note": "",
146-
"available": "AVAILABLE"
147-
},
148-
{
149-
"id": "org.powermock:powermock-core",
150-
"path": "https://github.com/powermock/powermock",
151-
"branch": "",
152-
"digest": "",
153-
"note": "",
154-
"available": "AVAILABLE"
155-
},
156-
{
157-
"id": "org.powermock:powermock-module-junit4",
158-
"path": "https://github.com/powermock/powermock",
159-
"branch": "",
160-
"digest": "",
161-
"note": "https://github.com/powermock/powermock is already analyzed.",
162-
"available": "DUPLICATED REPO URL"
163-
},
164-
{
165-
"id": "org.powermock:powermock-api-mockito2",
166-
"path": "https://github.com/powermock/powermock",
167-
"branch": "",
168-
"digest": "",
169-
"note": "https://github.com/powermock/powermock is already analyzed.",
170-
"available": "DUPLICATED REPO URL"
171-
},
172-
{
173-
"id": "com.google.guava:guava-testlib",
174-
"path": "https://github.com/google/guava",
175-
"branch": "",
176-
"digest": "",
177-
"note": "",
178-
"available": "AVAILABLE"
179-
},
180-
{
181-
"id": "javax.measure:jsr-275",
182-
"path": "",
183-
"branch": "",
184-
"digest": "",
185-
"note": "Manual configuration required. Could not find SCM URL.",
186-
"available": "MISSING REPO URL"
187-
},
188-
{
189-
"id": "junit:junit",
67+
"purl": "",
19068
"path": "https://github.com/junit-team/junit4",
19169
"branch": "",
19270
"digest": "",

0 commit comments

Comments
 (0)