From a32b96c4704332dac33ad4b756aa600e4b532a5c Mon Sep 17 00:00:00 2001 From: Jack Green Date: Fri, 27 Mar 2026 21:03:02 +0000 Subject: [PATCH] Update `membership` check implementation to avoid PAT requirement See (and is blocked by) https://github.com/hazelcast/hazelcast-tpm/pull/71 --- .github/workflows/builder.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/builder.yaml b/.github/workflows/builder.yaml index 9518fefec..b5829a12f 100644 --- a/.github/workflows/builder.yaml +++ b/.github/workflows/builder.yaml @@ -14,9 +14,8 @@ jobs: id: composite uses: hazelcast/hazelcast-tpm/membership@main with: - organization-name: 'hazelcast' member-name: ${{ github.actor }} - token: ${{ secrets.GH_TOKEN }} + token: ${{ github.token }} pr-builder: runs-on: ubuntu-latest permissions: @@ -26,7 +25,8 @@ jobs: - name: Detect untrusted community PR if: ${{ needs.check_for_membership.outputs.check-result == 'false' && github.event.pull_request.user.login != 'dependabot[bot]' }} run: | - echo "::error::ERROR: Untrusted external PR. Must be reviewed and executed by Hazelcast" 1>&2; + source /dev/stdin <<< "$(curl --silent https://raw.githubusercontent.com/hazelcast/github-actions-common-scripts/main/logging.functions.sh)" + echoerr "Untrusted external PR. Must be reviewed and executed by Hazelcast" exit 1 # Default GitHub runners have very little free disk space causing build failures # This operation can be intensive, so remove as little as possible to gain useful space