File tree 3 files changed +25
-0
lines changed
3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ export default function ConnectorRegistry({ type }) {
55
55
< th > OSS</ th >
56
56
< th > Cloud</ th >
57
57
< th > Docker Image</ th >
58
+ < th > SBOM</ th >
58
59
</ tr >
59
60
</ thead >
60
61
< tbody >
@@ -99,6 +100,13 @@ export default function ConnectorRegistry({ type }) {
99
100
</ code >
100
101
</ small >
101
102
</ td >
103
+ < td >
104
+ < small >
105
+ { connector . generated_oss ?. sbomUrl ? (
106
+ < a target = "_blank" href = { connector . generated_oss . sbomUrl } > SPDX JSON</ a >
107
+ ) : "No SBOM" }
108
+ </ small >
109
+ </ td >
102
110
</ tr >
103
111
) ;
104
112
} ) }
Original file line number Diff line number Diff line change @@ -236,6 +236,7 @@ const ConnectorMetadataCallout = ({
236
236
syncSuccessRate,
237
237
usageRate,
238
238
lastUpdated,
239
+ sbomUrl,
239
240
} ) => (
240
241
< Callout className = { styles . connectorMetadataCallout } >
241
242
< dl className = { styles . connectorMetadata } >
@@ -281,6 +282,7 @@ const ConnectorMetadataCallout = ({
281
282
lastUpdated
282
283
) . fromNow ( ) } )`} </ span >
283
284
) }
285
+
284
286
</ MetadataStat >
285
287
) }
286
288
{ cdkVersion && (
@@ -293,6 +295,13 @@ const ConnectorMetadataCallout = ({
293
295
) }
294
296
</ MetadataStat >
295
297
) }
298
+ { sbomUrl && (
299
+ < MetadataStat label = "SBOM" >
300
+ < a target = "_blank" href = { sbomUrl } >
301
+ SPDX JSON
302
+ </ a >
303
+ </ MetadataStat >
304
+ ) }
296
305
{ syncSuccessRate && (
297
306
< MetadataStat label = "Sync Success Rate" >
298
307
< MetricIcon iconComponent = { SUCCESS_ICON } level = { syncSuccessRate } />
@@ -339,6 +348,7 @@ export const HeaderDecoration = ({
339
348
syncSuccessRate,
340
349
usageRate,
341
350
lastUpdated,
351
+ sbomUrl,
342
352
} ) => {
343
353
const isOss = boolStringToBool ( isOssString ) ;
344
354
const isCloud = boolStringToBool ( isCloudString ) ;
@@ -369,6 +379,7 @@ export const HeaderDecoration = ({
369
379
syncSuccessRate = { syncSuccessRate }
370
380
usageRate = { usageRate }
371
381
lastUpdated = { lastUpdated }
382
+ sbomUrl = { sbomUrl }
372
383
/>
373
384
</ >
374
385
) ;
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ const plugin = () => {
48
48
"generated_[oss|cloud].source_file_info.metadata_last_modified"
49
49
) ;
50
50
51
+ const sbomUrl = getFromPaths (
52
+ registryEntry ,
53
+ "generated_[oss|cloud].sbomUrl"
54
+ )
55
+
51
56
const { version, isLatest, url } = parseCDKVersion (
52
57
rawCDKVersion ,
53
58
latestPythonCdkVersion
@@ -70,6 +75,7 @@ const plugin = () => {
70
75
syncSuccessRate,
71
76
usageRate,
72
77
lastUpdated,
78
+ sbomUrl,
73
79
} ;
74
80
75
81
firstHeading = false ;
You can’t perform that action at this time.
0 commit comments