briandfoy / cpan-security-advisory

CPAN Security Advisory Database
Artistic License 2.0
22 stars 14 forks source link

Add PURL support to record generation #158

Closed chromatic closed 1 month ago

chromatic commented 3 months ago

See the PURL spec and the CPAN-specific PURL spec:

The algorithm for generation matches that used in URI::PackageURL.

This change is necessary but not necessarily sufficient to use this security database as a source to the Open Source Vulnerabilities aggregator, as described in the OSV announcement.

I've marked this as a draft because I'm interested to discuss the goal I've laid out here, and am happy to revise the implementation, if desired.

briandfoy commented 3 months ago

I don't mind adding other fields, and a purl field will be fine. However, after reading the purl stuff it seems it doesn't quite fit.

But, I'm also wary of any Google project, especially when we already have ways to get this information for other sources that are already doing this work. In two years when Google gets tired of this, we're back to what we've been using for decades.

I think the path forward is a program that converts the data here into the format that Google needs. That doesn't require a change to the CPANSA.pm module.

And, let's use URI::PackageURL.

briandfoy commented 1 month ago

Since there was been no response to this, I'm closing this PR simply to keep the queue clean.