flora-pm / flora-server

A package index for the Haskell ecosystem
https://flora.pm/about
Other
125 stars 38 forks source link

Store HSEC advisories in the database #554

Open tchoutri opened 3 months ago

tchoutri commented 3 months ago

We can use the cabal-audit library to fetch the latest advisories, then parse the files.

We will need a new table called security_advisories, to store normalised informations about the advisory. Most, if not all of the information contained in the OVS file should be stored, and references to versions should be stored as foreign keys. It's mostly "introduced", "fixed" and the numbers that we can link to https://osv.dev & company.