mirror of https://github.com/goharbor/harbor.git
Update FixVersion and ScoreV3 (#22007)
Set Fix and CVE3Score in VulnerabilityRecord from VulnerabilityItem. Follow-up of #21915 Fixes #21463 Signed-off-by: Spyros Trigazis <spyridon.trigazis@cern.ch>
This commit is contained in:
parent
c93da7ff4b
commit
6c620dc20c
|
@ -138,6 +138,8 @@ func (c *nativeToRelationalSchemaConverter) toSchema(ctx context.Context, report
|
|||
|
||||
if record.Severity != v.Severity.String() {
|
||||
record.Severity = v.Severity.String()
|
||||
record.CVE3Score = v.CVSSDetails.ScoreV3
|
||||
record.Fix = v.FixVersion
|
||||
outOfDateRecords = append(outOfDateRecords, record)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue