Skip to content

Conversation

@ziadhany
Copy link
Collaborator

@ziadhany ziadhany commented Oct 30, 2025

@ziadhany ziadhany force-pushed the nvd-update branch 2 times, most recently from 2ca2aae to e6ed93c Compare January 1, 2026 09:15
@ziadhany
Copy link
Collaborator Author

ziadhany commented Jan 1, 2026

NVD logs:

nvd_importer_v2.zip

from vulnerabilities.models import AdvisoryV2
from django.db.models import Count
duplicates = (
    AdvisoryV2.objects
    .values('avid')
    .annotate(count=Count('id'))
    .filter(count__gt=1)
)
len(duplicates)
Out[4]: 0

AdvisoryV2.objects.count()
Out[3]: 295380

Copy link
Contributor

@TG1999 TG1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Update NVD Importer v2 to use 2.0 API schema
Migrate nvd importer v1 to use 2.0 API schema

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Add a test

Signed-off-by: ziad hany <ziadhany2016@gmail.com>
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
@TG1999 TG1999 merged commit 4171dbe into aboutcode-org:main Jan 2, 2026
5 of 6 checks passed
@ziadhany ziadhany deleted the nvd-update branch January 2, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVD Importer failing due to NVD Data Feed API changes

2 participants