From 7f8497e0d9f3a3510b3c72f130d9b8b460464f7e Mon Sep 17 00:00:00 2001 From: Richard McDaniel <1130888+rmcdaniel@users.noreply.github.com> Date: Thu, 19 Nov 2026 16:00:29 +0000 Subject: [PATCH] Pin CI PHP images to the 2026-11-19 security releases Bump the immutable official PHP image indexes used by the containerized CI test, PHAR, reproducible-build and Rust source-reference profiles to PHP 8.2.36, 8.4.28 and 8.5.13 (bookworm), require the exact 8.4.28 runtime in the PHAR and source-reference probes, and move the Rust release workflow's legacy 2.3.5 PHAR upgrade check onto the 8.4.28 index. The dormant PHP standalone release path stays at 8.4.27. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release-rust.yml | 2 +- scripts/ci/php-container-images.json | 6 +++--- scripts/ci/probe-php-phar-runtime.php | 2 +- scripts/ci/probe-php-reference-runtime.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-rust.yml b/.github/workflows/release-rust.yml index 9c6e22b..17ee00c 100644 --- a/.github/workflows/release-rust.yml +++ b/.github/workflows/release-rust.yml @@ -501,7 +501,7 @@ jobs: LEGACY_VERSION: 2.3.5 LEGACY_PHAR_SHA256: 67538671d44709312dd0ce77ec890094daf5c70d1e15eaa777c22231627d05a5 # Pinned official PHP index, including native amd64 and arm64 images. - LEGACY_PHP_IMAGE: php:8.4.27-cli-bookworm@sha256:b3e907a1108629c562c4bb313ce3449e34d49991f6bb2487913f6146f47200fe + LEGACY_PHP_IMAGE: php:8.4.28-cli-bookworm@sha256:85da896b3eeb8bcd83fe612e51a529b7d5983a1fab92ef5f63c7ac6e2842fc46 steps: # setup-php could not install PHP on macos-15 for 2.5.0-rc.3 (twice, # ~29 minutes each), so macOS takes PHP 8.4 from Homebrew core, as diff --git a/scripts/ci/php-container-images.json b/scripts/ci/php-container-images.json index e7878bf..031ec68 100644 --- a/scripts/ci/php-container-images.json +++ b/scripts/ci/php-container-images.json @@ -1,5 +1,5 @@ { - "8.2": "php:8.2.35-cli-bookworm@sha256:ce09ca1d4b532edf9b0347b44a1968a80d9175addb581c450ba0c9a43fa0c5ea", - "8.4": "php:8.4.27-cli-bookworm@sha256:b3e907a1108629c562c4bb313ce3449e34d49991f6bb2487913f6146f47200fe", - "8.5": "php:8.5.12-cli-bookworm@sha256:050713ce008e2360ea9dc96e1f9a075690132388d917fc3552806f7a7be6f2a0" + "8.2": "php:8.2.36-cli-bookworm@sha256:0a5ed0098915c11e1db8729b81bdb9a1bf12a998cc5e5b2f9a640afb6104dbe1", + "8.4": "php:8.4.28-cli-bookworm@sha256:85da896b3eeb8bcd83fe612e51a529b7d5983a1fab92ef5f63c7ac6e2842fc46", + "8.5": "php:8.5.13-cli-bookworm@sha256:d6991172c4282d2a09d6418073923a81664173bb0a0e07a16663a9a645746092" } diff --git a/scripts/ci/probe-php-phar-runtime.php b/scripts/ci/probe-php-phar-runtime.php index 4c7e672..02f0319 100644 --- a/scripts/ci/probe-php-phar-runtime.php +++ b/scripts/ci/probe-php-phar-runtime.php @@ -4,7 +4,7 @@ final class PharRuntimeRefused extends RuntimeException {} -if (PHP_VERSION !== '8.4.27' || ini_get('phar.readonly') !== '0' +if (PHP_VERSION !== '8.4.28' || ini_get('phar.readonly') !== '0' || ini_get('memory_limit') !== '-1' || ini_get('opcache.enable_cli') !== '0' || date_default_timezone_get() !== 'UTC' || ! in_array('/usr/local/etc/php/conf.d/zz-cli-phar.ini', explode(",\n", trim((string) php_ini_scanned_files())), true)) { throw new PharRuntimeRefused('The exact PHP PHAR profile must be active.'); diff --git a/scripts/ci/probe-php-reference-runtime.php b/scripts/ci/probe-php-reference-runtime.php index 5f87a94..40d72c3 100644 --- a/scripts/ci/probe-php-reference-runtime.php +++ b/scripts/ci/probe-php-reference-runtime.php @@ -4,7 +4,7 @@ final class ReferenceRuntimeRefused extends RuntimeException {} -if (PHP_VERSION !== '8.4.27' || ini_get('phar.readonly') !== '1' +if (PHP_VERSION !== '8.4.28' || ini_get('phar.readonly') !== '1' || ini_get('memory_limit') !== '-1' || ini_get('opcache.enable_cli') !== '0' || date_default_timezone_get() !== 'UTC' || ! in_array('/usr/local/etc/php/conf.d/zz-cli-reference.ini', explode(",\n", trim((string) php_ini_scanned_files())), true)) { throw new ReferenceRuntimeRefused('The exact PHP source-reference profile must be active.');