Skip to content

Commit

Permalink
feat(fetcher/nvd): update reject cve logic (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n authored Jun 12, 2024
1 parent a687194 commit 3225ee6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fetcher/nvd/nvd.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,13 @@ func convertToModel(cvePath string) (*models.Nvd, error) {
return nil, xerrors.Errorf("Failed to decode %s. err: %w", cvePath, err)
}

if item.VulnStatus == "Rejected" {
return nil, nil
}

// Description
descs := []models.NvdDescription{}
for _, desc := range item.Descriptions {
if strings.Contains(desc.Value, "** REJECT **") {
return nil, nil
}
descs = append(descs, models.NvdDescription{
Lang: desc.Lang,
Value: desc.Value,
Expand Down

0 comments on commit 3225ee6

Please sign in to comment.