Modify CVSS3 column for cve datagrid (#16298)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
孙世军 2022-01-28 11:46:28 +08:00 committed by GitHub
parent 2275c6e969
commit 45d9ece105
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -65,7 +65,11 @@
<span *ngSwitchCase="'None'" class="label label-none no-border">{{severityText(res.severity) | translate}}</span> <span *ngSwitchCase="'None'" class="label label-none no-border">{{severityText(res.severity) | translate}}</span>
<span *ngSwitchDefault>{{severityText(res.severity) | translate}}</span> <span *ngSwitchDefault>{{severityText(res.severity) | translate}}</span>
</clr-dg-cell> </clr-dg-cell>
<clr-dg-cell>{{res.preferred_cvss?.score_v3}}</clr-dg-cell> <clr-dg-cell>
<div class="clr-row mr-1" *ngFor="let item of res?.vendor_attributes?.CVSS | keyvalue">
<div class="clr-col">{{item?.key}}:</div><div class="clr-col">{{item?.value?.V3Score}}</div>
</div>
</clr-dg-cell>
<clr-dg-cell>{{res.package}}</clr-dg-cell> <clr-dg-cell>{{res.package}}</clr-dg-cell>
<clr-dg-cell>{{res.version}}</clr-dg-cell> <clr-dg-cell>{{res.version}}</clr-dg-cell>
<clr-dg-cell> <clr-dg-cell>

View File

@ -250,6 +250,9 @@ export interface VulnerabilityItem extends VulnerabilityBase {
layer?: string; layer?: string;
description?: string; description?: string;
preferred_cvss?: {[key: string]: string | number}; preferred_cvss?: {[key: string]: string | number};
vendor_attributes?: {
CVSS?: {[key: string]: any};
};
} }
export interface VulnerabilitySummary { export interface VulnerabilitySummary {