diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 7204c3c..4da884a 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -7,8 +7,10 @@ on: jobs: opencode: if: | - contains(github.event.comment.body, '/oc') || - contains(github.event.comment.body, '/opencode') + (contains(github.event.comment.body, '/oc') || + contains(github.event.comment.body, '/opencode')) && + (github.event.comment.author_association == 'OWNER' || + github.event.comment.author_association == 'MEMBER') runs-on: ubuntu-latest permissions: id-token: write