Skip to content
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

Add allowed-plugins in composer config #38085

Merged
merged 1 commit into from
Jan 20, 2022
Merged

Conversation

walbo
Copy link
Member

@walbo walbo commented Jan 19, 2022

Description

As of Composer 2.2, Composer plugins need to be explicitly allowed to run. This commit adds the necessary configuration for that to prevent Composer asking every single time composer install or composer update is runned.

See
https://blog.packagist.com/composer-2-2/#more-secure-plugin-execution
https://getcomposer.org/doc/06-config.md#allow-plugins

How has this been tested?

Locally with composer v2.2.4

As of Composer v2.2.0, the config needs to define which plugins that are allowed to execute code during a Composer run.

See https://getcomposer.org/doc/06-config.md#allow-plugins
@Mamaduka Mamaduka added [Type] Code Quality Issues or PRs that relate to code quality Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts labels Jan 20, 2022
Copy link
Member

@Mamaduka Mamaduka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @walbo.

@Mamaduka Mamaduka merged commit 56e137a into trunk Jan 20, 2022
@Mamaduka Mamaduka deleted the add/composer-allowed-plugins branch January 20, 2022 06:52
@github-actions github-actions bot added this to the Gutenberg 12.5 milestone Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants