breaking-change(go-cve-dict): support new go-cve-dictionary (#1277)
* feat(model): change CveContents(map[string]CveContent) to map[string][]CveContent * fix(cpescan): use CveIDSource * chore: check Nvd, Jvn data * chore: go-cve-dictionary update * chore: add to cveDetails as is, since CveID is embedded in the response
This commit is contained in:
		@@ -908,9 +908,11 @@ func detailLines() (string, error) {
 | 
			
		||||
			refsMap[ref.Link] = ref
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	if cont, found := vinfo.CveContents[models.Trivy]; found {
 | 
			
		||||
		for _, ref := range cont.References {
 | 
			
		||||
			refsMap[ref.Link] = ref
 | 
			
		||||
	if conts, found := vinfo.CveContents[models.Trivy]; found {
 | 
			
		||||
		for _, cont := range conts {
 | 
			
		||||
			for _, ref := range cont.References {
 | 
			
		||||
				refsMap[ref.Link] = ref
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	refs := []models.Reference{}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user