Skip to content

Fold OSV advisories into vulnerabilities in the domain - #222

Merged
fniessink merged 1 commit into
mainfrom
refactor-osv
Aug 10, 2026
Merged

Fold OSV advisories into vulnerabilities in the domain#222
fniessink merged 1 commit into
mainfrom
refactor-osv

Conversation

@fniessink

Copy link
Copy Markdown
Member

Reading several databases' advisories as one vulnerability lived in sources.osv, in an Advisory type and a Defect type holding a group of them. Vulnerability now carries it, through identifiers, names, and merged, and never lists its own advisory id among its aliases. The source reads each record into a Vulnerability and folds them, so both types are gone. Behaviour is unchanged, down to which id a vulnerability is reported under. The README, the docstrings, and the test names now say "vulnerability" for the thing warned about and "advisory" for one database's report of it.

Reading several databases' advisories as one vulnerability lived in `sources.osv`, in an `Advisory` type and a `Defect` type holding a group of them. `Vulnerability` now carries it, through `identifiers`, `names`, and `merged`, and never lists its own advisory id among its aliases. The source reads each record into a `Vulnerability` and folds them, so both types are gone. Behaviour is unchanged, down to which id a vulnerability is reported under. The README, the docstrings, and the test names now say "vulnerability" for the thing warned about and "advisory" for one database's report of it.
@fniessink
fniessink marked this pull request as ready for review August 10, 2026 14:51
@fniessink
fniessink merged commit 01db8d9 into main Aug 10, 2026
2 of 3 checks passed
@fniessink
fniessink deleted the refactor-osv branch August 10, 2026 14:51
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.

1 participant