-
-
Notifications
You must be signed in to change notification settings - Fork 354
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
Globally installed tools are not added to the allow-plugins
option in composer.json
#611
Comments
Fixed in a863ab6 |
Just asking, is there any ETA for the release? |
Done 2.20.0 |
Btw maybe flex as tool should be deprecated? I'm not sure what the use case is, but if it's about perf it does not bring any value anymore with composer 2 at least |
Flex is not only about performance improvements, it's about a lot of other features like forcing the installation of the same version for all |
@Seldaek I will keep flex for the above reason. Also, While plugin authentication is great for security in local environments, in CI the default in my opinion would be to allow the plugins. |
I'm well aware of that part but I don't understand the point of having it globally installed then. For those use cases, the project itself should really require symfony/flex in composer.json to ensure it's always present. |
You can set "composer global config allow-plugins true" to allow all global plug-ins that'd simplify/speed up your fix. That only applies to the globally installed ones tho. "composer config -g allow-plugins true" should allow all plug-ins to run always, but IMO this isn't a decision you should make for users. There are security implications in CI as well, you may have sensitive tokens in env etc. |
Hi @shivammathur, I still have the problem that the It says:
Edit: Tested with |
@eliashaeussler |
@shivammathur Thanks for the quick fix! Works like a charm 🎉 |
Hi @shivammathur, can you already say when there will be a new release? |
@eliashaeussler Sorry for the delay, released |
@shivammathur Thanks! |
Describe the bug
Since version
2.2
, any Composer plugin that needs to run must be listed in theallow-plugins
config of thecomposer.json
. I added thesymfony/flex
plugin to such list in thecomposer.json
of my project, but it doesn't work because the tool is installed globally. To solve the problem, thecomposer global config --no-plugins allow-plugins.symfony/flex true
command should be ran as part of the setup step.Version
v1
orv2
.v2
v1
Runners
Operating systems
ubuntu-latest
PHP versions
8.1
To Reproduce
Expected behavior
The
symfony/flex
plugin is installed and allowed to run thanks to it being added toallow-plugins
incomposer.json
. There should be no warning about the plugin being blocked.Screenshots/Logs
Additional context
None
Are you willing to submit a PR?
I'm not familiar with how this action works under the hood, but I can try
The text was updated successfully, but these errors were encountered: