-
-
Notifications
You must be signed in to change notification settings - Fork 479
Description
More and more tools use PURL to identify packages in a standardized way.
A purl or package URL is an attempt to standardize existing approaches to reliably identify and locate software packages.
A purl is a URL string used to identify and locate a software package in a mostly universal and uniform way across programming languages, package managers, packaging conventions, tools, APIs and databases.
Such a package URL is useful to reliably reference the same software package using a simple and expressive syntax and conventions based on familiar URLs.
Check also this short purl presentation (with video) at FOSDEM 2018 https://fosdem.org/2018/schedule/event/purl/ for an overview.
It's heavily used in SBOMs and SCA tooling. An example tool is Dependency Track. Currently it's based around official standards, and only supports PURL (or CPE) to idenfity packages. So currently it doesn't index vulnerabilities from packagist (or specific repository instances such as https://packages.drupal.org/files/packages/8.
The request here is to support PURLs in packagist composer respositores. Use cases / features affected by this based on my limited knowledge of the ecosystem (not exhaustive):
- Allow metadata retrieval by PURL, i.e. GET https://repo.packagist.org/p2/
- Return PURL in metadata responses
- List vulnerabilities by PURL, i.e. GET https://packagist.org/api/security-advisories/?&packages[]=[]
Is this something that could be considered?