Skip to content

Commit 2196f55

Browse files
committed
Add CVSS, EPSS to Component Vulnerabilities
Make more information available on the component vulnerability tab with default visibility false. Fixes DependencyTrack/dependency-track#1948 Signed-off-by: awegg <[email protected]>
1 parent df995f5 commit 2196f55

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

src/views/portfolio/projects/ComponentVulnerabilities.vue

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,32 @@
9292
formatter(value, row, index) {
9393
return value === true ? '<i class="fa fa-check-square-o" />' : "";
9494
},
95-
}
95+
},
96+
{
97+
title: this.$t('message.cvss'),
98+
field: "cvssV3BaseScore",
99+
sortable: true,
100+
visible: false,
101+
formatter(value, row, index) {
102+
if (value && typeof value === 'number') {
103+
return value.toFixed(1);
104+
} else {
105+
return null;
106+
}
107+
},
108+
},
109+
{
110+
title: this.$t('message.epss'),
111+
field: "epssScore",
112+
sortable: true,
113+
visible: false
114+
},
115+
{
116+
title: this.$t('message.epss_percentile'),
117+
field: "epssPercentile",
118+
sortable: true,
119+
visible: false
120+
},
96121
],
97122
data: [],
98123
options: {

0 commit comments

Comments
 (0)