Skip to content

Fix CI: declare allow-plugins for composer install - #105

Merged
corsacca merged 1 commit into
masterfrom
fix-composer-allow-plugins
Oct 8, 2026
Merged

corsacca merged 1 commit into
masterfrom
fix-composer-allow-plugins

Conversation

@corsacca

@corsacca corsacca commented Oct 8, 2026

Copy link
Copy Markdown
Member

CI currently fails at composer install on both PHP jobs. The runner now ships Composer 2.10.3, which turns this old warning into an error:

Your composer.lock was generated before the allow-plugins security feature was introduced and your composer.json does not define allow-plugins.

See the failing run here: https://github.com/DiscipleTools/disciple-tools-webform/actions/runs/37806707452/job/113412762734. composer.json and composer.lock are the same on master, so any branch hits this error.

Fix

  • Added config.allow-plugins to composer.json for dealerdirect/phpcodesniffer-composer-installer, which is the plugin that registers WPCS with PHPCS.
  • Ran composer update --lock. It only refreshed the lock's content-hash and the PHP_CodeSniffer repository URLs; the locked package versions are unchanged.

I checked this locally from a clean vendor/: composer install, ./test/test_for_syntax_errors.sh and ./test/test_phpcs.sh all pass.

The same commit is also in #104 so that PR can go green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GjYTexmHbnYghvDQuLhfLW


Generated by Claude Code

… works

Composer 2.10 now fails 'composer install' when composer.lock predates
allow-plugins and composer.json doesn't declare it. Declare the plugin
and refresh the lock hash (package versions unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GjYTexmHbnYghvDQuLhfLW
@corsacca
corsacca merged commit 3547c70 into master Oct 8, 2026
4 checks passed
@corsacca
corsacca deleted the fix-composer-allow-plugins branch October 8, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants