Skip to content

Commit 3cebe6c

Browse files
authored
Update membership check implementation to avoid PAT requirement (#776)
See (and is blocked by) hazelcast/hazelcast-tpm#71 Also - use centralised logging.
1 parent efb8414 commit 3cebe6c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/builder.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ jobs:
1414
id: composite
1515
uses: hazelcast/hazelcast-tpm/membership@main
1616
with:
17-
organization-name: 'hazelcast'
1817
member-name: ${{ github.actor }}
19-
token: ${{ secrets.GH_TOKEN }}
18+
token: ${{ github.token }}
2019
pr-builder:
2120
runs-on: ubuntu-latest
2221
permissions:
@@ -26,7 +25,8 @@ jobs:
2625
- name: Detect untrusted community PR
2726
if: ${{ needs.check_for_membership.outputs.check-result == 'false' && github.event.pull_request.user.login != 'dependabot[bot]' }}
2827
run: |
29-
echo "::error::ERROR: Untrusted external PR. Must be reviewed and executed by Hazelcast" 1>&2;
28+
source /dev/stdin <<< "$(curl --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)"
29+
echoerr "Untrusted external PR. Must be reviewed and executed by Hazelcast"
3030
exit 1
3131
# Default GitHub runners have very little free disk space causing build failures
3232
# This operation can be intensive, so remove as little as possible to gain useful space

0 commit comments

Comments
 (0)