Skip to content

Add PR Guardrails trigger workflow - #148

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

Add PR Guardrails trigger workflow#148
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

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, but the CI completion trigger is ineffective and secret handling is unsafe.

Changes:

  • Adds PR and check-suite guardrail triggers.
  • Calls the centralized reusable guardrail workflow.
  • Serializes guardrail runs per PR.

Review contract:

  • Claim: Enable linked-issue, membership-bypass, and CI guardrails.
  • Root cause: Not fully addressed; check_suite cannot observe GitHub Actions CI completion (pr-guardrails.yml:11-12).
  • Call sites/boundary: Central workflow also requires event-handling changes.
  • Compatibility: No public API impact.
  • Testing: The workflow is unexercised.
  • Docs: Inline documentation is sufficient.
  • Risks: Mutable @main receives inherited repository secrets (pr-guardrails.yml:26-27).

Comment on lines +11 to +12
check_suite:
types: [completed]
Comment thread .github/workflows/pr-guardrails.yml Outdated
Comment on lines +26 to +27
uses: pimcore/workflows-collection-public/.github/workflows/parent-pr-guardrails.yml@main
secrets: inherit
@berfinyuksel berfinyuksel added this to the 2026.3.0 milestone Jul 22, 2026
@sonarqubecloud

Copy link
Copy Markdown

@berfinyuksel
berfinyuksel merged commit 803b890 into 2026.x Jul 23, 2026
13 checks passed
@berfinyuksel
berfinyuksel deleted the feat/pr-guardrails branch July 23, 2026 09:45
@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.

3 participants