From 7981673a338b426bbe32c2df64bb82e9586854d2 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Wed, 1 Mar 2023 11:18:36 +0100 Subject: [PATCH] Update the CLA Workflow (#1080) As per internal discussions, this PR changes the CLA action to remove signing exceptions for `cowprotocol` organization members. ### Test Plan We should all need to sign CLA documents soon! --- .github/workflows/cla.yaml | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index 3713922cf1..fcae10df2f 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -10,27 +10,14 @@ jobs: cla: runs-on: ubuntu-latest steps: - - name: "Get Team Members" - id: team - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.ORG_TOKEN }} - result-encoding: string - script: | - const members = await github.paginate( - github.rest.orgs.listMembers, - { org: "cowprotocol" }, - ); - return members.map(m => m.login).join(","); - - name: "CLA Assistant" if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - uses: contributor-assistant/github-action@v2.1.3-beta + uses: contributor-assistant/github-action@v2.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PERSONAL_ACCESS_TOKEN : ${{ secrets.ORG_TOKEN }} with: branch: 'cla-signatures' path-to-signatures: 'signatures/version1/cla.json' - path-to-document: 'https://github.com/cowprotocol/cla/blob/main/Cow%20Services%20CLA.md' - allowlist: '${{ steps.team.outputs.result }},*[bot]' + path-to-document: 'https://github.com/cowprotocol/cla/blob/main/CLA.md' + allowlist: '*[bot]'