From 964a34f23bbca782a04ce0dd3db3cd8872babc34 Mon Sep 17 00:00:00 2001 From: nicohrubec Date: Thu, 11 Jul 2024 10:52:36 +0200 Subject: [PATCH] Add is organization member check --- .github/workflows/external-contributors.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/external-contributors.yml b/.github/workflows/external-contributors.yml index a0869cc3d2d4..0666d98914f6 100644 --- a/.github/workflows/external-contributors.yml +++ b/.github/workflows/external-contributors.yml @@ -7,6 +7,14 @@ on: - develop jobs: + is_organization_member: + name: Is Organization member + if: ${{ github.event_name == 'pull_request' }} + uses: JamesSingleton/is-organization-member@1.0.0 + with: + organization: Sentry + username: ${{ github.event.pull_request.user.login }} + token: ${{ secrets.GITHUB_TOKEN }} external_contributor: name: External Contributors permissions: @@ -19,6 +27,7 @@ jobs: && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'OWNER' && github.actor != 'dependabot[bot]' + && steps.is_organization_member.outputs.result == 'false' steps: - uses: actions/checkout@v4 - name: Set up Node