Add advisory-based VCIO API support with backward-compatible normalization layer#2067
Add advisory-based VCIO API support with backward-compatible normalization layer#2067dikshaa2909 wants to merge 1 commit intoaboutcode-org:mainfrom
Conversation
…rmalization Signed-off-by: dikshaa2909 <dikshadeware@gmail.com>
|
Hi @TG1999 could you please review this PR when you get a chance? Thank you! |
|
Hi @tdruez @pombredanne @TG1999 can u pls review it when u have time ! Thanks ! |
|
This PR doesn't change the majority of the code in https://github.com/aboutcode-org/scancode.io/blob/main/scanpipe/pipes/vulnerablecode.py which uses the old API to get vulnerabilities data, but just performs a very basic data normalization, instead of using the new API/data and refactoring all the changes required. This is a large, complex task and @dikshaa2909 please do not submit PRs which are spam/low effort/vibe coded, without even running/passing the tests locally, as this wastes the maintainers time. This also negatively affects getting selected into GSoC. Closing! |
|
@AyanSinhaMahapatra |
Summary
Addresses #2002
Add support for advisory-based VCIO API responses while preserving compatibility with the existing vulnerability-based model.
Changes
extract_security_entries()to centralize security entry handling.normalize_advisories()to mapaffected_by_advisoriesinto the existing vulnerability-compatible structure.affected_by_vulnerabilitiesbehavior (no schema changes).Migration Strategy
The VCIO API is migrating from vulnerabilities to advisories.
This PR adds a minimal normalization layer to support both formats without requiring model, template, or database changes.
This enables phased migration while keeping the integration stable and backward compatible.