Skip to content

Composer: remove roave/security-advisories#428

Merged
jrfnl merged 1 commit intotrunkfrom
JRF/composer-remove-roave-security-advisories
Dec 31, 2025
Merged

Composer: remove roave/security-advisories#428
jrfnl merged 1 commit intotrunkfrom
JRF/composer-remove-roave-security-advisories

Conversation

@jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Dec 31, 2025

Context

  • General maintenance

Summary

This PR can be summarized in the following changelog entry:

  • Removed dependency which is no longer needed

Relevant technical choices:

The roave/security-advisories package was an inventive method to block installation of known insecure versions of other dependencies (via a conflict annotation).

As of Composer 2.9, using the roave/security-advisories package for this purpose is no longer needed as Composer will now natively block installation of known insecure versions of dependencies.

And while not all contributors to this repo may be using Composer 2.9+ (yet), Composer 2.9+ will be used in CI and CI failing on Composer blocking an insecure dependency offers the same level of protection as the package previously offered.

Refs:

Test instructions

Test instructions for the acceptance test before the PR gets merged

This PR can be acceptance tested by following these steps:

  • Introduce a dependency with a known security vulnerability and run composer install with Composer >= 2.9 and see the install blocked by Composer.
    Alternatively, run composer audit.

The `roave/security-advisories` package was an inventive method to block installation of known insecure versions of other dependencies (via a `conflict` annotation).

As of Composer 2.9, using the `roave/security-advisories` package for this purpose is no longer needed as Composer will now natively block installation of known insecure versions of dependencies.

And while not all contributors to this repo may be using Composer 2.9+ (yet), Composer 2.9+ **_will_** be used in CI and CI failing on Composer blocking an insecure dependency offers the same level of protection as the package previously offered.

Refs:
* https://blog.packagist.com/composer-2-9/
* https://github.com/composer/composer/releases/tag/2.9.0
@jrfnl jrfnl added this to the 4.6 milestone Dec 31, 2025
@jrfnl jrfnl merged commit 7eed12d into trunk Dec 31, 2025
26 checks passed
@jrfnl jrfnl deleted the JRF/composer-remove-roave-security-advisories branch December 31, 2025 19:02
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