From e11e15a99355c61fd498f4b8cbef1a0d9e5ef530 Mon Sep 17 00:00:00 2001 From: Tom Grigg Date: Tue, 8 Jun 2021 20:45:51 -0700 Subject: [PATCH] Check CLA for user who opened pull request, not workflow initiator --- .github/workflows/cla.yml | 2 ++ project/scripts/check-cla.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 1547a0569f70..53800df7bb00 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -6,3 +6,5 @@ jobs: steps: - uses: actions/checkout@v2 - run: ./project/scripts/check-cla.sh + env: + AUTHOR: ${{ github.event.pull_request.user.login }} diff --git a/project/scripts/check-cla.sh b/project/scripts/check-cla.sh index 8538a27f4bd1..21efa74eb2eb 100755 --- a/project/scripts/check-cla.sh +++ b/project/scripts/check-cla.sh @@ -1,7 +1,6 @@ #!/usr/bin/env bash set -eux -AUTHOR=$GITHUB_ACTOR echo "Pull request submitted by $AUTHOR"; signed=$(curl -s https://www.lightbend.com/contribute/cla/scala/check/$AUTHOR | jq -r ".signed"); if [ "$signed" = "true" ] ; then