Skip to content

CI: replace pwn-request php-cs-fixer and repoint dead static-analysis reference - #55

Merged
berfinyuksel merged 3 commits into
2.0from
ci/consolidated-workflow-fixes
Sep 3, 2026
Merged

CI: replace pwn-request php-cs-fixer and repoint dead static-analysis reference#55
berfinyuksel merged 3 commits into
2.0from
ci/consolidated-workflow-fixes

Conversation

@berfinyuksel

@berfinyuksel berfinyuksel commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Security fix (pimcore/service-operations#1083): the inline php-cs-fixer workflow ran under pull_request_target with contents: write while checking out fork-controlled content — the classic pwn-request. Replaced with the push-only reusable caller this repo already uses on its default branch (byte-identical file swap). Pattern validated on pimcore/web2print-tools#121.

Scope note: this PR originally also repointed the static-analysis workflow. That was reverted after verification: this version line cannot install any Pimcore ^10/^11 release under Composer 2.9's Packagist advisory policy, so the unified workflow cannot go green here. The dead-reference repoint landed on the lowest 12-era branch instead; this branch's static-analysis state is documented on pimcore/DevOps-Tasks#47.

Expected on this PR: php-cs-fixer does NOT run (push-only trigger). The old-style Static Analysis checks pinned to retired ubuntu-20.04 runners queue forever and never conclude — pre-existing on this branch, not caused or required by this PR. Repoint for this repo: #56 (@3.0).

berfinyuksel and others added 2 commits August 26, 2026 13:29
…t_target

The inline workflow ran under pull_request_target with contents: write
while checking out fork-controlled content, and php-cs-fixer executes
the fork-controlled .php-cs-fixer.dist.php. Replace it with the
push-only reusable caller already used on 2026.x.

Refs pimcore/service-operations#1083. Same change as
pimcore/tinymce-bundle#34 and pimcore/web2print-tools#121.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The previous caller referenced a reusable workflow retired in
workflows-collection-public on 2025-12-09, so every run start-failed
with zero jobs. Replace it with the unified pattern validated in
pimcore/web2print-tools#121, with paths-ignore, push scoped to version
branches, and a concurrency group with cancel-in-progress.

Refs pimcore/DevOps-Tasks#47, pimcore/DevOps-Tasks#44.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings August 26, 2026 11:31

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.

Pull request overview

Updates CI workflows to use safer, maintained reusable workflows.

Changes:

  • Replaces unsafe fork-aware PHP-CS-Fixer execution with push-only automation.
  • Migrates static analysis to the unified reusable workflow and dynamic matrix.
  • Adds scheduling, path filtering, and concurrency controls.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/static-analysis.yml Migrates PHPStan CI to the unified workflow.
.github/workflows/php-cs-fixer.yaml Uses the push-only reusable formatter workflow.

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

Comment thread .github/workflows/static-analysis.yml Outdated

static-analysis:
needs: setup-matrix
uses: pimcore/workflows-collection-public/.github/workflows/reusable-static-analysis-unified.yaml@main
Comment thread .github/workflows/static-analysis.yml Outdated
APP_ENV: test
PIMCORE_TEST: 1
REQUIRE_ADMIN_BUNDLE: "false"
COVERAGE: "none"
@berfinyuksel berfinyuksel added the Skip Milestone Check Exempts this PR from the mandatory milestone requirement label Aug 26, 2026
Pimcore ^10/^11 releases are all blocked by Packagist security advisories
under Composer 2.9 policy, so the unified workflow cannot install on this
version line (verified in this PR's runs). The dead-reference repoint moves
to the lowest 12-era branch instead; the state of this branch's static
analysis is documented on pimcore/DevOps-Tasks#47.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@berfinyuksel
berfinyuksel merged commit 78b8195 into 2.0 Sep 3, 2026
7 of 10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 3, 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.

3 participants