diff --git a/.github/workflows/backport-pr.yml b/.github/workflows/backport-pr.yml index da5f0a9b52..9b1572971f 100644 --- a/.github/workflows/backport-pr.yml +++ b/.github/workflows/backport-pr.yml @@ -29,6 +29,10 @@ jobs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ref: ${{ github.event.inputs.target_branch }} + # Check out the entire repository so that the target commit is checked + # out (by default, only fetches the single commit identified by the + # `ref` argument). + fetch-depth: 0 persist-credentials: false - name: Cherry-pick commit run: |