I'm opening this thread on behalf of the @roots project.
We recently were asked how to reflect WordPress advisories properly as a Composer package wrapper for WordPress core.
This also aligns with the question raised years ago here: #383
While we all agree linking the advisories to the packages is a great idea, there are some challenges:
- The best would probably be to be able to set an alias for advisories on Packagist for every/any WP core provider.
- But WordPress is not officially referenced as a Composer package.
That is the purpose of the WP core provider packages, stating the obvious here. The point is that WP advisories, even if registered on GitHub Advisory DB, are not handled by Packagist nor registered in a Composer-compatible name (org/name).
- Also such feature is not implemented on the Packagist side anyway.
- Then we could consider implementing automation between WP advisories and the FriendsOfPHP/security-advisories repo.
- But multiple packages are providing WordPress core.
Just for @roots, there are 2 packages aligned with the WP core variants. Other projects are also doing mostly the same. It would not be sustainable to duplicate WP advisories to each WP core provider.
- Then we could consider syncing WP advisories with the packages' repositories (example).
- But the WP core is obviously WP.org "intelectual property" in the way the packages are and should only be a helper for Composer to download the said IP. They do not host the said IP.
Syncing advisories with the package repositories would not make sense.
- Also such implementation would not be easy considering the GitHub Advisory API.
- And still not very sustainable for the same reasons as in point 2.
At least 2. feels doable, and that's mainly why I'm raising the question here.
But would it be reasonnable?
All in all, do you have any recommendations?
I'm opening this thread on behalf of the @roots project.
We recently were asked how to reflect WordPress advisories properly as a Composer package wrapper for WordPress core.
This also aligns with the question raised years ago here: #383
While we all agree linking the advisories to the packages is a great idea, there are some challenges:
That is the purpose of the WP core provider packages, stating the obvious here. The point is that WP advisories, even if registered on GitHub Advisory DB, are not handled by Packagist nor registered in a Composer-compatible name (
org/name).Just for @roots, there are 2 packages aligned with the WP core variants. Other projects are also doing mostly the same. It would not be sustainable to duplicate WP advisories to each WP core provider.
Syncing advisories with the package repositories would not make sense.
At least 2. feels doable, and that's mainly why I'm raising the question here.
But would it be reasonnable?
All in all, do you have any recommendations?