diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 99d238e3c..a30a799be 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -28,3 +28,12 @@ jobs: run: | moon fmt git diff + + - name: CLA check + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + PR_AUTHOR=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \ + https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }} \ + | jq -r '.user.login') + echo "The PR author is $PR_AUTHOR"