Merge pull request #124760 from domenkozar/backport-permission-fix

Backport action: permission fix

authored by Domen Kožar and committed by GitHub 45c81a11 1b969993

+4 -3
+4 -3
.github/workflows/backport.yml
··· 1 name: Backport 2 on: 3 - pull_request: 4 - types: [closed] 5 jobs: 6 backport: 7 - name: Create backport PRs 8 if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true 9 runs-on: ubuntu-latest 10 steps: ··· 12 with: 13 # required to find all branches 14 fetch-depth: 0 15 - name: Create backport PRs 16 # should be kept in sync with `version` 17 uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd
··· 1 name: Backport 2 on: 3 + pull_request_target: 4 + types: [closed, labeled] 5 jobs: 6 backport: 7 + name: Backport Pull Request 8 if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true 9 runs-on: ubuntu-latest 10 steps: ··· 12 with: 13 # required to find all branches 14 fetch-depth: 0 15 + ref: ${{ github.event.pull_request.head.sha }} 16 - name: Create backport PRs 17 # should be kept in sync with `version` 18 uses: zeebe-io/backport-action@9b8949dcd4295d364b0939f07d0c7593598d26cd