Allow PHPStan extension-installer plugin in Composer config

Add composer global config to explicitly allow phpstan/extension-installer plugin before installation. This resolves "blocked by your allow-plugins config" error in Composer 2.2+.

Co-authored-by: jmiller-moko <230051081+jmiller-moko@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-05 12:08:46 +00:00
parent 15fa87e49d
commit f67946f0c0

View File

@@ -108,6 +108,7 @@ jobs:
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
run: |
composer global config --no-plugins allow-plugins.phpstan/extension-installer true
composer global require phpstan/phpstan "^1.0" --with-all-dependencies
composer global require phpstan/extension-installer "^1.0" --with-all-dependencies