Skip to content

Add PR Guardrails trigger workflow - #3923

Merged
berfinyuksel merged 2 commits into
2026.xfrom
feat/pr-guardrails
Jul 23, 2026
Merged

Add PR Guardrails trigger workflow#3923
berfinyuksel merged 2 commits into
2026.xfrom
feat/pr-guardrails

Conversation

@berfinyuksel

Copy link
Copy Markdown
Contributor

Adopts the org-wide PR guardrails (linked-issue requirement + Dev-Team membership bypass + CI gate) per pimcore/DevOps-Tasks#4.

Thin, generic trigger identical to the template in payment-provider-payu — it calls parent-pr-guardrails.yml@main with secrets: inherit. The three guardrail tokens are org-level secrets with all-repository access, so no per-repo wiring is needed.

Note: the guardrail activates for PRs opened after this merges (pull_request_target runs the base-branch workflow definition), so this PR does not exercise it.

Copilot AI review requested due to automatic review settings July 22, 2026 14:05
@berfinyuksel
berfinyuksel requested a review from bluvulture as a code owner July 22, 2026 14:05

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.

Pull request overview

Verdict: Needs changes. Adds the repository trigger for centralized PR guardrails.

Changes:

  • Triggers guardrails for PR and check-suite activity.
  • Calls the centralized workflow with inherited secrets.
  • Serializes runs per PR or commit.

Review assessment:

  • Intent/root cause: Centralization is appropriate (pr-guardrails.yml:24-27), but check_suite cannot observe GitHub Actions CI completion (:11-12).
  • Coverage/boundary: A corresponding workflow_run path requires caller and central-workflow support.
  • Compatibility: Additive; no public API changes.
  • Testing/docs: No workflow regression test. The description incorrectly excludes existing open PRs despite the events at :9-10.
  • Remaining risk: Organization-secret provisioning is not verifiable here.

Comment on lines +11 to +12
check_suite:
types: [completed]
Comment on lines +9 to +10
pull_request_target:
types: [opened, reopened, ready_for_review, converted_to_draft, edited, synchronize]
@berfinyuksel berfinyuksel added this to the 2026.3.0 milestone Jul 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

@berfinyuksel
berfinyuksel merged commit b9e48dc into 2026.x Jul 23, 2026
9 checks passed
@berfinyuksel
berfinyuksel deleted the feat/pr-guardrails branch July 23, 2026 09:46
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants