haskell / security-advisories

https://haskell.github.io/security-advisories/
Other
44 stars 17 forks source link

Support for other namespaces #240

Open tchoutri opened 4 hours ago

tchoutri commented 4 hours ago

In #165, @frasertweedale wrote

We are referencing the Hackage namespace. In most cases, the package description contains a reference to the repository.

Is there any chance that there could be a metadata about the package that references the namespace? I'm currently working on Flora integration of advisories and I'd love to be able to fully disambiguate packages hosted by Hackage from package of the Cardano package repository.

Right now I will restrict the advisories to the @hackage namespace, but I'm be delighted to see a field for the namespace / package repository one day. :)

TristanCacqueray commented 3 hours ago

It's not presently extensible, but here is where the affected identifier is defined:

https://github.com/haskell/security-advisories/blob/b6eca11d65ab18fce60030d1dba7793789157292/code/hsec-core/src/Security/Advisories/Core/Advisory.hs#L51