-
Notifications
You must be signed in to change notification settings - Fork 19
Changes #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes #41
Conversation
Wow, thanks for the PR. Thats a lot of work :) 👍 I will look at generated file more thoroughly. There is at least a bug for Regrading (Ahh your are already in the related d.o issue: https://www.drupal.org/project/project_composer/issues/3301876) |
Sorry, i think my last comment about the invalid constraint is wrong. |
I find this patch really interesting! I tried it myself and it seems it works as expected. |
The constraints are simpler, but also a bit more fragile and could lead to false positives. The problem is described in commit: tuutti@ef44ea7. Drupal core released version "9.5.2" and this version was flagged as insecure until the package has been rebuild. This means that the package must always be up to date, so far I build it only on Wednesday (18-22 UTC) and once on Thursday (to make sure that no security release was missed). Please correct me if I am wrong. Thanks! |
I think you are right. The upper bound probably should to be capped to latest known release number in that constraint group, like |
* Refactored constraints to be less fragile * Removed unused composerRepository setting * phpcs fixes
Could it maybe interesting to work together with https://github.com/mxr576/ddqg-composer-audit to provide a composer audit plugin extension for the hole Drupal community? Output with enabled ddqg-composer-audit plugin
|
@IT-Cru I do not know how did you find my tool... but good catch... :D The first public release went live yesterday evening and I haven't promoted it anywhere yet :) Feel free to use it as inspiration, other than a hobby project, my goal was building a tool that fulfills my current needs (and maybe also our company needs) better than this package as of today. (See also #29) |
Oh yea, I totally forgot about this. I've refactored this to take supported branches into account, so the maximum/minimum version should be less fragile now. It also means that versions that are not supported are now marked as insecure. We've been using this as a part of our test CI pipeline for ~3 months now and it seems to work pretty well. |
This is probably no longer needed since the original issue is now fixed (https://www.drupal.org/project/project_composer/issues/3301876). Closing. |
No idea how to title this, but I started investigating how to use
composer audit
for Drupal modules and started building a tool to generate a similar SA database as https://github.com/FriendsOfPHP/security-advisories, but it ended up requiring way more effort than it was worth due to limited Drupal security advisory metadata.I have refactored it to generate a similar composer.json as this tool instead and I'm opening this pull request to see if you'd be interested.
It should be much faster because it leverages concurrency (the whole build takes 1-2 min) and fetches the version data from
updates.drupal.org
, so the constraints should be much simpler/cleaner.See:
You can test this yourself with:
php console.php build:composer current
andphp console.php build:composer 7.x
.