Skip to content

[1.x] [workflows] fix: peg composer at 2.8.x to avoid security blocking, etc in 2.9 - #4294

Merged
imorland merged 1 commit into
1.xfrom
im/composer
Nov 26, 2025
Merged

[1.x] [workflows] fix: peg composer at 2.8.x to avoid security blocking, etc in 2.9#4294
imorland merged 1 commit into
1.xfrom
im/composer

Conversation

@imorland

@imorland imorland commented Nov 26, 2025

Copy link
Copy Markdown
Member

Fixes #0000

Changes proposed in this pull request:
Composer now automatically blocks updates to packages with known security advisories. This is a problem for some of 1.x's deps, especially laminas.

To prevent CI failures, this pegs composer to 2.8.x (ie before these changes were introduced).

The other option is to add audit.block-insecure: false in composer.json, but this would not be helpful for currently released Flarum versions.

The changes here are not needed for 2.x

More information: https://blog.packagist.com/composer-2-9/

Reviewers should focus on:

Screenshot

Necessity

  • Has the problem that is being solved here been clearly explained?
  • If applicable, have various options for solving this problem been considered?
  • For core PRs, does this need to be in core, or could it be in an extension?
  • Are we willing to maintain this for years / potentially forever?

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run composer test).
  • Core developer confirmed locally this works as intended.
  • Tests have been added, or are not appropriate here.

Required changes:

  • Related documentation PR: (Remove if irrelevant)

@imorland
imorland requested a review from a team as a code owner November 26, 2025 20:46
@imorland
imorland merged commit c772b9c into 1.x Nov 26, 2025
680 of 681 checks passed
@imorland
imorland deleted the im/composer branch November 26, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant