Skip to content

Commit

Permalink
Add is organization member check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicohrubec committed Jul 11, 2024
1 parent 0e6d802 commit 964a34f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/external-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
- develop

jobs:
is_organization_member:
name: Is Organization member
if: ${{ github.event_name == 'pull_request' }}
uses: JamesSingleton/[email protected]
with:
organization: Sentry
username: ${{ github.event.pull_request.user.login }}
token: ${{ secrets.GITHUB_TOKEN }}
external_contributor:
name: External Contributors
permissions:
Expand All @@ -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
Expand Down

0 comments on commit 964a34f

Please sign in to comment.