Commit 0099ce2
committed
ci: drop PHP 8.1, pin PHPUnit to 11.x, pin webpack for Docusaurus build
PHP 8.1 reached end-of-life in 2025 so drop it from the test matrix and
bump the runtime requirement to >=8.2. On the matrix side this also
clears a pre-existing red CI caused by PHPUnit 12.x (PHP >=8.3) now
resolving over PHPUnit 11.x on 8.1.
Pin `phpunit/phpunit` to `^11.0` explicitly — PHPUnit 11 is the latest
major that supports PHP 8.2, and 12.x's PHP >=8.3 requirement is what
was breaking composer resolution for every PR opened after PHPUnit
12.5.22 shipped.
Acknowledge advisory PKSA-5jz8-6tcw-pbk4 (GHSA-qrr6-mg7r-m243) with a
targeted audit-ignore carrying the threat-model rationale. The advisory
describes argument injection via newlines in PHP INI values forwarded to
child processes; phpunit is require-dev only and the attack surface is
phpunit config + CLI args authored by maintainers/CI, which carry the
same trust boundary as any other committed code. No fix has been
backported to PHPUnit 10.x or 11.x. Revisit when a backport ships or
when we bump min PHP to 8.3 and can move to ^12.5.22.
For the Docusaurus docs workflow, pin webpack to 5.88.2 via a
package.json `resolutions` block. Webpack versions newer than 5.88.x
tightened ProgressPlugin schema validation and reject options that
webpackbar@5 (transitively pinned by @docusaurus/core 2.4.3) passes
through, producing the "options has an unknown property 'name' /
'color' / 'reporters' / 'reporter'" build failure on every PR.1 parent dafc8b2 commit 0099ce2
3 files changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
0 commit comments