Skip to content

Internal: Update cherry pick workflow [TMZ-1035]#629

Merged
hein-obox merged 1 commit into
mainfrom
internal/TMZ-1035-update-workflow
May 12, 2026
Merged

Internal: Update cherry pick workflow [TMZ-1035]#629
hein-obox merged 1 commit into
mainfrom
internal/TMZ-1035-update-workflow

Conversation

@hein-obox
Copy link
Copy Markdown
Member

@hein-obox hein-obox commented May 12, 2026

✨ PR Description

1. Problem & Context

Cherry-pick workflow needs tighter guard conditions to prevent unintended triggers. Added repository origin validation to ensure PRs originate from the target repo, not forks.

2. What Changed (Where)

.github/workflows/cherry-pick-pr.yml: Enhanced job condition to validate github.event.pull_request.head.repo.full_name == github.repository.

3. How It Works

Workflow now filters at job-level: merged PR + origin repo match + (closed action OR labeled with cp_ prefix). Prevents fork PRs from triggering cherry-pick logic even if merged in upstream.

4. Risks

None. Additive guard condition—stricter filtering eliminates false positives without affecting legitimate cherry-pick scenarios.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

@hein-obox hein-obox merged commit 533baa6 into main May 12, 2026
43 checks passed
@hein-obox hein-obox deleted the internal/TMZ-1035-update-workflow branch May 12, 2026 08:01
hein-obox pushed a commit that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants