setup-php v2.37.2 Release Notes
Release Date: 2026-06-08 // 8 days ago-
๐ Changelog
๐ Fixed macOS setup by marking
shivammathur/phpandshivammathur/extensionsas trusted taps.๐ Switched to Visual Studio 18
(vs18)builds for PHP 8.6 on Windows.๐ Improved looking up environment variables.
๐ Tightened security in internal GitHub action workflows.
โก๏ธ Updated Node.js dependencies.
For the complete list of changes, please refer to the Full Changelog
โก๏ธ Follow for updates
Previous changes from v2.37.1
-
๐ Changelog
โก๏ธ Security Updates
- ๐ Fixed shell command escaping and PHP version input validation. (GHSA-pqwm-q9pv-ph8r / CVE-2026-46420)
Note
This can affect workflows that pass values from users or pull requests to
setup-php, for example from comments, dispatch inputs, PR titles/branches, generated matrices, or files such as.php-versionandcomposer.json.
Be especially careful withpull_request_targetworkflows that use any value from the pull request. Workflows that only use fixed trusted values are not expected to be affected, but updating to2.37.1is recommended.- ๐ Fixed GitHub auth handling for Composer versions affected by GHSA-f9f8-rm49-7jv2. It should now skip configuring GitHub OAuth if affected Composer versions are installed and show a warning to upgrade. (GHSA-5wxr-w449-57cm / CVE-2026-45793)
Note
โก๏ธ This only affects workflows where the composer version is pinned like
composer:2.9.7, workflows that do not pin the version or usecomposer:v2are not affected as those get automatic updates. In case you pin the version, it is highly recommended to upgrade and have automation to do such timely upgrades in your workflows.๐ Fixes and Improvements
๐ Fixed support for
phalconon Windows.๐ Fixed restoring tools when using cached using previous runs.
๐ Improved enabling
gearmanextension on Linux.๐ Fixed fallback when installing
PhpManagerandVcRedistmodules on Windows.๐ Fixed parsing extension inputs with backslash line continuation.
๐ Improved workflow examples
๐ Updated OS release mappings for newer Ubuntu releases.
โก๏ธ Updated internal workflows for Codecov v6 and NPM trusted publishing.
โก๏ธ Updated Node.js dependencies.
๐ Fixed composer version in README. (#1081)
Thanks @Pyker for the contribution
For the complete list of changes, please refer to the Full Changelog
โก๏ธ Follow for updates