mirror of
https://github.com/goharbor/harbor
synced 2025-05-13 03:23:39 +00:00
add cve link in Harbor API
This commit is contained in:
parent
987ad06ed7
commit
5846d7d28d
@ -107,6 +107,7 @@ type VulnerabilityItem struct {
|
||||
Pkg string `json:"package"`
|
||||
Version string `json:"version"`
|
||||
Description string `json:"description"`
|
||||
Link string `json:"link"`
|
||||
Fixed string `json:"fixedVersion,omitempty"`
|
||||
}
|
||||
|
||||
|
@ -434,6 +434,7 @@ func transformVulnerabilities(layerWithVuln *models.ClairLayerEnvelope) []*model
|
||||
Version: f.Version,
|
||||
Severity: clair.ParseClairSev(v.Severity),
|
||||
Fixed: v.FixedBy,
|
||||
Link: v.Link,
|
||||
Description: v.Description,
|
||||
}
|
||||
res = append(res, vItem)
|
||||
|
Loading…
x
Reference in New Issue
Block a user