Title: Replace roave/security-advisories with Composer's built-in advisory blocking · Issue #308 · wp-cli/.github · GitHub
Open Graph Title: Replace roave/security-advisories with Composer's built-in advisory blocking · Issue #308 · wp-cli/.github
X Title: Replace roave/security-advisories with Composer's built-in advisory blocking · Issue #308 · wp-cli/.github
Description: Since its update on 2026-10-29, roave/security-advisories also conflicts with PHP itself: php <8.2.35 | >=8.3,<8.3.36 | >=8.4,<8.4.27 | >=8.5,<8.5.12. Composer can no longer install the dependencies of a repository that requires it on an...
Open Graph Description: Since its update on 2026-10-29, roave/security-advisories also conflicts with PHP itself: php <8.2.35 | >=8.3,<8.3.36 | >=8.4,<8.4.27 | >=8.5,<8.5.12. Composer can no longer install the dependencie...
X Description: Since its update on 2026-10-29, roave/security-advisories also conflicts with PHP itself: php <8.2.35 | >=8.3,<8.3.36 | >=8.4,<8.4.27 | >=8.5,<8.5.12. Composer can no longer in...
Opengraph URL: https://github.com/wp-cli/.github/issues/308
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Replace roave/security-advisories with Composer's built-in advisory blocking","articleBody":"Since its update on 2026-10-29, `roave/security-advisories` also conflicts with PHP itself: `php \u003c8.2.35 | >=8.3,\u003c8.3.36 | >=8.4,\u003c8.4.27 | >=8.5,\u003c8.5.12`. Composer can no longer install the dependencies of a repository that requires it on any older PHP version. That breaks every CI job testing on PHP 7.2–8.1, as well as runners that lag a patch release.\n\n#305 works around this by removing the package in CI when the running PHP falls inside the conflict. It reads the conflict with `composer show --available`, which fails in wp-cli-dev because its path repositories are only cloned later. The step then reports `conflicts with php (none)`, keeps the package, and the unit tests on PHP 7.4–8.1 fail in every wp-cli-dev pull request (for example wp-cli/wp-cli-dev#85).\n\n## Proposal\n\nRemove `roave/security-advisories` from every repository, and remove the CI workaround.\n\nThe package no longer adds anything. Since [Composer 2.9](https://blog.packagist.com/composer-2-9/), Composer refuses to install or update to any package version with a known security advisory, by default. The release post says that if you use `roave/security-advisories`, \"this new feature replaces it fully and you can remove the dependency on this package.\" Composer 2.10 moved the setting into the `policy` config block, still enabled by default.\n\nComposer's check covers our dependencies, not the PHP version Composer runs on. That is the part we care about: we don't control the PHP version on a CI runner, we just need to test on it. The test runners are short-lived, are not reachable from outside, and setup-php ships builds with security fixes backported (shivammathur/setup-php#1139).\n\n## Composer 2.9 or later is required for this protection\n\nContributors need Composer 2.9 or later to keep this protection locally. Older Composer versions install without the check.\n\nThat is a reasonable requirement. Composer 2.9 and later require PHP 7.2.5, the same as every Composer 2.x release since 2.3, so any PHP version that can run current WP-CLI tooling can run it. I checked Composer 2.9.0 on PHP 7.2.34, 7.4.33, 8.0.30, 8.1.34, 8.2.35, 8.3.36, 8.4.27 and 8.5.12: it runs on each and blocks a package with known advisories (`guzzlehttp/guzzle 7.4.0`) on each. Only a PHP version older than 7.2.5 is stuck on an older Composer, and such a version gets no security patches anyway. CI already installs the latest Composer (2.11.1 at the moment).\n\n## Changes\n\n- [x] wp-cli/.github#309 (merge last): remove the \"Drop roave/security-advisories\" step from `reusable-unit.yml` and `reusable-functional.yml`\n- [x] wp-cli/wp-cli#6441\n- [x] wp-cli/wp-cli-bundle#1184\n- [x] wp-cli/wp-cli-dev#88, which also documents the Composer 2.9 requirement\n- [x] wp-cli/wp-cli-tests#396\n- [x] wp-cli/php-cli-tools#205\n\n","author":{"url":"https://github.com/schlessera","@type":"Person","name":"schlessera"},"datePublished":"2026-10-30T18:35:24Z","url":"https://github.com/wp-cli/.github/issues/308"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6fdf9dab-401a-0950-089b-b9d848595cd7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 968A:3D53D8:1360B55:1A79968:6AFB704C |
| html-safe-nonce | b8918776aeb8dc14a55c723b25bb0d1c0d071da5ef789412e2741c0d3ccebcda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjhBOjNENTNEODoxMzYwQjU1OjFBNzk5Njg6NkFGQjcwNEMiLCJ2aXNpdG9yX2lkIjoiNjczOTU0MDQ5NTE1MzQ1OTI3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9775b25f6c5485e5df7a635589d9c9526933a362771f4f8b98867354f5275490 |
| hovercard-subject-tag | issue:6124909368 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/.github/308/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ed9bc3cc790ebb453f012ac240db6faf349123c9da58ef6e679976363b41c92/wp-cli/.github/issues/308 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ed9bc3cc790ebb453f012ac240db6faf349123c9da58ef6e679976363b41c92/wp-cli/.github/issues/308 |
| og:image:alt | Since its update on 2026-10-29, roave/security-advisories also conflicts with PHP itself: php <8.2.35 | >=8.3,<8.3.36 | >=8.4,<8.4.27 | >=8.5,<8.5.12. Composer can no longer install the dependencie... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | schlessera |
| hostname | github.com |
| expected-hostname | github.com |
| None | cca289ecd54650fcf3c0b037a58b97186dee2cc4406819d87fab93728fd83700 |
| turbo-cache-control | no-preview |
| go-import | github.com/wp-cli/.github git https://github.com/wp-cli/.github.git |
| octolytics-dimension-user_id | 1570774 |
| octolytics-dimension-user_login | wp-cli |
| octolytics-dimension-repository_id | 181716041 |
| octolytics-dimension-repository_nwo | wp-cli/.github |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 181716041 |
| octolytics-dimension-repository_network_root_nwo | wp-cli/.github |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 88808b1fae5ab8a526a73e7ce5542a10eb9d6971 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width