diff --git a/.github/workflows/community.yml b/.github/workflows/community.yml index 7ce4603c2..f6beebde4 100644 --- a/.github/workflows/community.yml +++ b/.github/workflows/community.yml @@ -18,7 +18,7 @@ jobs: github-token: ${{ secrets.READ_ORG_TOKEN }} result-encoding: string script: | - const result = await github.orgs.getMembershipForAuthenticatedUser({ + const result = await github.orgs.getMembershipForUser({ org: "elastic", username: context.payload.sender.login }) @@ -40,4 +40,4 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, labels: ['community'] - }) \ No newline at end of file + })