Skip to content

Backport: ci: avoid pull_request_target for backports#15211

Merged
gr2m merged 1 commit into
release-v5.0from
backport-15209-to-release-v5.0
May 12, 2026
Merged

Backport: ci: avoid pull_request_target for backports#15211
gr2m merged 1 commit into
release-v5.0from
backport-15209-to-release-v5.0

Conversation

@gr2m
Copy link
Copy Markdown
Collaborator

@gr2m gr2m commented May 12, 2026

Background

Backport of #15209.

Backports should work for internal and fork PRs without pull_request_target.

Summary

Use trusted issues.labeled and push events to resolve merged PRs before running backport automation.

Use trusted issue label and push events to resolve merged PRs before running backport automation.

Co-authored-by: Cursor <cursoragent@cursor.com>
@gr2m gr2m merged commit d510766 into release-v5.0 May 12, 2026
18 checks passed
@gr2m gr2m deleted the backport-15209-to-release-v5.0 branch May 12, 2026 18:00
gr2m added a commit that referenced this pull request May 12, 2026
## Summary
- Backports the latest backport workflow fixes from main to
release-v5.0.
- Switches labeled backports to trusted pull_request/workflow_dispatch
handling and adds race-condition protection.
- Adds clearer handling for fork PRs and workflow-file changes that
cannot be auto-backported with GITHUB_TOKEN.

## Test plan
- Not run; GitHub Actions workflow-only change.
- Verified branch contains the expected six workflow-only cherry-picks
after #15211.


Made with [Cursor](https://cursor.com)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant