Skip to content

Update the PHP the Windows image ships before testing - #87

Merged
imanimanyara merged 1 commit into
mainfrom
ci/setup-php-update-preinstalled
Oct 26, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
ci/setup-php-update-preinstalled

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

The windows-latest image ships PHP 8.5.11, and setup-php reuses it unless update is set. After PHP 8.5.12 (2026-10-21) shipped a security fix, roave/security-advisories conflicts with php >=8.5,<8.5.12, so composer refuses to resolve on the Windows leg.

This sets update: ${{ runner.os != 'Linux' }} in the cross-platform job's setup-php env. It is an environment variable in setup-php 2.x, not an input. Windows and macOS legs upgrade to the latest patch, and the ubuntu-only jobs are untouched.

The same fix is merged in password-tools#21, password-history#20 and barua#21, where every PHP 8.5 Windows leg logged Updated to PHP 8.5.12.

setup-php reused the image's PHP 8.5.11 after 8.5.12 shipped a security
fix, and roave/security-advisories refuses to install on it, so the
Windows leg failed on every pull request. Set setup-php's update (read
from the step's environment) off Linux so it upgrades to the latest patch.
Copilot AI balanced review requested due to automatic review settings October 26, 2026 17:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@imanimanyara
imanimanyara merged commit e48525b into main Oct 26, 2026
17 checks passed
@imanimanyara
imanimanyara deleted the ci/setup-php-update-preinstalled branch October 26, 2026 17:54
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