From 6b432af417e128ce189135c445929f7e80b6b080 Mon Sep 17 00:00:00 2001 From: Juha Uotila <10782843+inffy@users.noreply.github.com> Date: Sat, 4 Jul 2026 09:09:16 +0300 Subject: [PATCH] fix(ci): fix the backport action to use the base ref --- .github/workflows/cherry-pick-to-stable.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cherry-pick-to-stable.yml b/.github/workflows/cherry-pick-to-stable.yml index f59a3ed4a..485f20e7b 100644 --- a/.github/workflows/cherry-pick-to-stable.yml +++ b/.github/workflows/cherry-pick-to-stable.yml @@ -28,6 +28,10 @@ jobs: with: # Use the dynamically generated GitHub App token token: ${{ steps.generate-token.outputs.token }} + # Explicitly check out the base branch (the PR is already merged into it). + # Avoids the default `refs/pull//merge` ref, which actions/checkout + # refuses to check out for fork PRs on pull_request_target events. + ref: ${{ github.event.pull_request.base.ref }} fetch-depth: 0 - name: Configure Git Author