CVS updates vulnerabilities when affected range is unchanged (no upsert)

Release notes

Problem to solve

When a security advisory is ingested into the Rails backend, Continuous Vulnerability Scanning (CVS) upserts vulnerabilities in projects. To save resources and speed up scans, CVS could instead update existing vulnerabilities when the advisory being ingested already exists, and when the affected packages and version ranges haven't changed.

Proposal

When syncing the backend with the Package Metadata DB and ingesting advisories, publish a distinct even when an advisory is updated but the affected package and its affected versions don't change. In that case, update the existing vulnerabilities in projects instead of upserting them.

Further details

Intended users

Feature Usage Metrics

Does this feature require an audit event?

Edited by Fabien Catteau