Skip to content

Remove roave/security-advisories - #205

Merged
schlessera merged 1 commit into
mainfrom
remove-roave-security-advisories
Oct 30, 2026
Merged

schlessera merged 1 commit into
mainfrom
remove-roave-security-advisories

Conversation

@schlessera

@schlessera schlessera commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Part of wp-cli/.github#308.

Since Composer 2.9, Composer refuses to install packages with known security advisories by default, which the release post says fully replaces roave/security-advisories. Since its latest update, the package also conflicts with every PHP version without the newest security release, so it can no longer be installed on the older PHP versions we test on.

Composer's check covers the dependencies only, not PHP itself. CI runs the latest Composer, so every test job still blocks vulnerable dependencies, including those on older PHP versions.

Summary by CodeRabbit

  • Chores
    • Removed a development-only package from the project’s setup. No changes to end-user features or behavior are included in this update.

Composer 2.9+ blocks packages with known security advisories by default, which fully replaces this package. Since its latest update, the package also conflicts with every PHP version without the newest security release, so it can't be installed on the older PHP versions we test on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@schlessera
schlessera requested a review from a team as a code owner October 30, 2026 18:36
@coderabbitai

coderabbitai Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b98ddc07-d891-4407-8a9c-4d536749c91d
Commits

Reviewing files that changed from the base of the PR and between 0395364 and de67d5a.

Files selected for processing: 1
  • composer.json

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Walkthrough

The roave/security-advisories development dependency was removed from composer.json. The wp-cli/wp-cli-tests development dependency remains.

Changes: Composer development dependency

Layer / File(s) Summary
Development dependency declaration
composer.json
Removed roave/security-advisories from development dependencies. wp-cli/wp-cli-tests remains.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: danielbachhuber

Merge Risk: Minimal · up to de67d

The removal relies on Composer's native advisory blocking. No actionable regression remains established; the change is mergeable after normal checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Remove roave/security-advisories" names the only change in the changeset, which removes the roave/security-advisories development dependency from composer.json. It is short, specific, and i…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Remove roave/security-advisories" names the only change in the changeset, which removes the roave/security-advisories development dependency from composer.json. It is short, specific, and identifies the package that was removed.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files.

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@schlessera
schlessera merged commit a8a88a6 into main Oct 30, 2026
25 checks passed
@schlessera
schlessera deleted the remove-roave-security-advisories branch October 30, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement scope:distribution Related to distribution scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant