fix(workflows): run backport in base repo context#15865
fix(workflows): run backport in base repo context#15865ayagmar wants to merge 2 commits intoapache:mainfrom
Conversation
rmuir
left a comment
There was a problem hiding this comment.
We will need to find a more secure method than pull_request_target
Hmm do you have any recommendations? |
I don't have any specific recommendations, but too many open source projects are getting hacked via push to main sounds much better!! |
I agree and sorry about that haha, I've also been seeing the pwns and it's getting scary |
a171e73 to
d9fb9e8
Compare
no concerns anymore about pull_request_target, it uses push trigger now
stefanvodita
left a comment
There was a problem hiding this comment.
It feels like there's quite a few changes here besides changing the action trigger. We're still dry-running though, so this would be safe to test, right?
|
To me this looks rewritten by LLM. I know it's all the rage, but I think we should avoid this for the ci. Can we please clean up after the llm and make minimal logic for this project? Many of the conditionals aren't even relevant |
Yes. same behavior with dry run naturally, this only plans and prints what it would do. It does not perform any actions
That's true, and it's mainly because push does not have the PR context that We also dropped the cherry-pick action. That action is built around PR-triggered context and points forked-repo usage toward
Fair criticism. I did use LLMs while reviewing this before i pushed, and it ended up being more defensive than it should have been.. I went back through it with that in mind and trimmed out the parts that were not really justified or earned their keep At this point, the parts I think are actually necessary are:
@rmuir @stefanvodita If you think there's still a simpler shape here, I'm very open to it and thank you for reviewing |
|
This PR has not had activity in the past 2 weeks, labeling it as stale. If the PR is waiting for review, notify the dev@lucene.apache.org list. Thank you for your contribution! |


Description
Follow-up for the backport workflow #14496
Switches the trigger from pull_request to pull_request_target and checks out the base branch ref explicitly. The dry-run behavior looked correct, however the execution needs base-repo context so GitHub Actions can push the backport branch and open the PR for cross-repo merges ( forks )