Skip to content

[CI] Build the codeception matrix from the base branch (2.4) - #701

Merged
berfinyuksel merged 1 commit into
2.4from
ci/codeception-matrix-source-2.4
Sep 21, 2026
Merged

berfinyuksel merged 1 commit into
2.4from
ci/codeception-matrix-source-2.4

Conversation

@berfinyuksel

Copy link
Copy Markdown
Contributor

Part of pimcore/product-management#1430.

Syncs the matrix-source hardening that 2026.x already has into .github/workflows/codeception.yml on 2.4: the
setup-matrix job now checks out the PR's base ref and builds the test matrix from that
branch's composer.json, instead of the PR head. The matrix must not be attacker-controlled
(this caller triggers on pull_request).

The file becomes byte-identical to its 2026.x version; the only difference was this hunk.

Forward-merge chain after merge: 2.4 → 2026.2 → 2026.x (2026.2 and 2026.x already identical, no-op there) (direct merges, no PRs).

@berfinyuksel berfinyuksel added the Skip Milestone Check Exempts this PR from the mandatory milestone requirement label Sep 21, 2026
@berfinyuksel
berfinyuksel marked this pull request as ready for review September 21, 2026 13:36
Copilot AI balanced review requested due to automatic review settings September 21, 2026 13:36
@sonarqubecloud

Copy link
Copy Markdown

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approved

The targeted workflow change correctly prevents PR-head control of matrix inputs.

Review effort: Balanced
Findings: None

What changed in this PR

Hardens Codeception CI matrix generation by using trusted base-branch configuration.

Changes:

  • Checks out the PR base ref before reading composer.json.
  • Falls back to the workflow ref for non-PR triggers.
File Description
.github/​workflows/​codeception.yml Selects the trusted ref for matrix setup.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@berfinyuksel
berfinyuksel merged commit 71c2805 into 2.4 Sep 21, 2026
18 of 19 checks passed
@berfinyuksel
berfinyuksel deleted the ci/codeception-matrix-source-2.4 branch September 21, 2026 13:46
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Skip Milestone Check Exempts this PR from the mandatory milestone requirement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants