Skip to content

Commit

Permalink
CI: Skip 'required reviewers' check on forks (no org team check perms) (
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronsteers committed Apr 23, 2024
1 parent dfe0b74 commit 3da2fd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/contractors_review_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ jobs:
name: "Check if a review is required from Connector teams"
runs-on: ubuntu-latest

if: ${{ github.repository == 'airbytehq/airbyte' }}
if: ${{ github.event.repository.fork == false }}
# This workflow cannot run on forks, as the fork's github token does not have `read:org`
# permissions, which are required to check the user's team membership. We assume that a
# review on a fork's PR is always required from one or more connector teams and/or support.

steps:
- name: Check contributor team membership
uses: tspascoal/get-user-teams-membership@v3
Expand Down

0 comments on commit 3da2fd3

Please sign in to comment.