File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 44 pull_request_target :
55
66jobs :
7+ check_for_membership :
8+ runs-on : ubuntu-latest
9+ name : Check PR author membership
10+ outputs :
11+ check-result : ${{ steps.composite.outputs.check-result }}
12+ steps :
13+ - name : Action for membership check
14+ id : composite
15+ uses : hazelcast/hazelcast-tpm/membership@main
16+ with :
17+ organization-name : ' hazelcast'
18+ member-name : ${{ github.actor }}
19+ token : ${{ secrets.GH_TOKEN }}
720 pr-builder :
821 runs-on : ubuntu-latest
22+ needs : check_for_membership
923 steps :
24+ - name : Detect untrusted community PR
25+ if : ${{ needs.check_for_membership.outputs.check-result == 'false' }}
26+ run : |
27+ echo "::error::ERROR: Untrusted external PR. Must be reviewed and executed by Hazelcast" 1>&2;
28+ exit 1
1029 - name : Checkout Code
1130 uses : actions/checkout@v4
1231 - name : Set up Java
You can’t perform that action at this time.
0 commit comments