Skip to content

CI: consolidated workflow fixes (php-cs-fixer pwn-request, dead static-analysis reference, trigger hygiene) - #121

Merged
berfinyuksel merged 2 commits into
6.0from
security/php-cs-fixer-drop-pull-request-target
Aug 26, 2026
Merged

CI: consolidated workflow fixes (php-cs-fixer pwn-request, dead static-analysis reference, trigger hygiene)#121
berfinyuksel merged 2 commits into
6.0from
security/php-cs-fixer-drop-pull-request-target

Conversation

@berfinyuksel

@berfinyuksel berfinyuksel commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Consolidated per-repo CI fixes for 6.0. Refs pimcore/service-operations#1083, pimcore/DevOps-Tasks#47, pimcore/DevOps-Tasks#44.

1. php-cs-fixer: remove pwn-request patternpull_request_target + fork checkout + fork-controlled .php-cs-fixer.dist.php + contents: write + auto-commit, replaced by the push-only reusable caller already on 5.2/6.1 (byte-identical to 6.1). Same as pimcore/tinymce-bundle#34.

2. Static analysis: dead reference repointed — the caller referenced reusable-static-analysis-centralized.yaml, retired 2025-12-09, so every run start-failed with zero jobs. Repointed to the unified pattern; this PR ran the repo's first passing PHPStan legs since December (8.3/lowest, 8.4/highest).

3. Trigger hygiene (#44 ideas 1–3) — push scoped to version branches, concurrency + cancel-in-progress, paths-ignore doc/assets/markdown.

Post-merge verification: php-cs-fixer fired on push to 6.0 and passed, no PR-triggered run; upstream merge 6.0→6.1 pushed directly (dfa479d), php-cs-fixer diff empty as predicted.

berfinyuksel and others added 2 commits August 26, 2026 12:39
…t_target

The inline php-cs-fixer workflow ran under pull_request_target with
contents: write while checking out fork-controlled content, and
php-cs-fixer executes .php-cs-fixer.dist.php, which is itself
fork-controlled PHP. That combination allows an outside contributor's
PR to influence what runs with a write-capable token.

Replace it with the reusable caller already used on 5.2 and 6.1, which
is push-only and never checks out fork content. File content is
byte-identical to 6.1 so the forward merge is clean.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
reusable-static-analysis-centralized.yaml was retired in
workflows-collection-public on 2025-12-09 (8007db80), so every run of
this workflow since then has start-failed with zero jobs. Replace the
caller with the unified pattern proven green on advanced-object-search
7.x, adapted only in paths-ignore (doc, public assets, markdown).

Also scopes push to version branches and adds a concurrency group with
cancel-in-progress, so PR-branch pushes no longer double-run and
superseded runs are cancelled.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@berfinyuksel
berfinyuksel merged commit 01e2bef into 6.0 Aug 26, 2026
8 checks passed
@berfinyuksel
berfinyuksel deleted the security/php-cs-fixer-drop-pull-request-target branch August 26, 2026 11:25
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 26, 2026
@berfinyuksel berfinyuksel added the Skip Milestone Check Exempts this PR from the mandatory milestone requirement label Aug 26, 2026
@berfinyuksel berfinyuksel changed the title Run PHP-CS-Fixer on push via reusable workflow instead of pull_request_target CI: consolidated workflow fixes (php-cs-fixer pwn-request, dead static-analysis reference, trigger hygiene) Aug 26, 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.

1 participant