commit 4e893150d69f28e3eff09c007dbde4431ce75df9 parent 64e909c7360a70cf65d8ac0a543d129b46dee335 Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 11 Oct 2023 15:23:11 +0200 Protect CI command Diffstat:
| M | .github/workflows/pullrequest.yml | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml @@ -20,7 +20,7 @@ jobs: contents: read statuses: write needs: linting - if: github.event.issue.pull_request && contains(github.event.comment.body, '/test') + if: github.event.issue.pull_request && contains(github.event.comment.body, '/test' && (contains(github.event.comment.author_association, 'OWNER') || contains(github.event.comment.author_association, 'MEMBER'))) runs-on: ubuntu-latest steps: - name: Get PR branch