Fixing CVE annotate crash
@@ -71,7 +71,7 @@ func getCVEData(client *nvd.Client, filePath, data string) {
cveName := matches[0][1]
severityMatches := severityRegex.FindAllStringSubmatch(data, 1)
- if len(matches) == 0 {
+ if len(severityMatches) == 0 {
return
}
severityValue := severityMatches[0][1]
