diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 9d2c2aa99..6bec08be0 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -18,12 +18,12 @@ jobs: - name: check requester run: | # fail job if the requester is not a member of the organization - + curl -s -H "Authorization: token ${{ secrets.READ_KOSLI_GH_ORG_MEMBERS }}" \ https://api.github.com/orgs/kosli-dev/members \ | jq -r ".[].login" \ + | grep -w "${{ github.event.pull_request.user.login }}" result=$? - echo $result if [[ $result -eq 0 ]]; then echo "User ${{ github.event.pull_request.user.login }} is a member of kosli-dev"