diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 9a3b7bdb14..9afc5b840f 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -10,12 +10,14 @@ on: types: [ "labeled", "closed" ] permissions: - contents: write + contents: read jobs: backport: name: Backport PR runs-on: ubuntu-latest + permissions: + contents: write if: | github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'backport')