Ice3man543 2021-09-10 23:21:25 +05:30
parent ca85186d9a
commit e07123e6ca
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ func getCVEData(client *nvd.Client, filePath, data string) {
}
severityValue := severityMatches[0][1]
// Skip if there's classification data already
if strings.Contains(data, "classification:") {
return
}
cveItem, err := client.FetchCVE(cveName)
if err != nil {
log.Printf("Could not fetch cve %s: %s\n", cveName, err)