Merge pull request #3027 from reasonerjt/add-vuln-link

add cve link in Harbor API
This commit is contained in:
Daniel Jiang 2017-08-10 19:44:06 +08:00 committed by GitHub
commit 9b6ad0e90f
2 changed files with 2 additions and 0 deletions

View File

@ -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"`
}

View File

@ -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)