diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml index c41f86479..97ad0e6f9 100644 --- a/.github/workflows/cherry-pick.yml +++ b/.github/workflows/cherry-pick.yml @@ -5,7 +5,7 @@ on: jobs: cherry-pick: name: Cherry Pick - if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') + if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/cherry-pick') && github.event.comment.author_association == 'MEMBER' runs-on: ubuntu-latest steps: - name: Checkout the latest code diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index dfc8fa32f..e8db5f62c 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -7,7 +7,7 @@ jobs: name: Rebase runs-on: ubuntu-latest if: >- - github.event.issue.pull_request != '' && + github.event.issue.pull_request != '' && github.event.comment.author_association == 'MEMBER' && ( contains(github.event.comment.body, '/rebase') || contains(github.event.comment.body, '/autosquash')