diff --git a/.github/workflows/add-action-project.yml b/.github/workflows/add-action-project.yml new file mode 100644 index 00000000..ce969e76 --- /dev/null +++ b/.github/workflows/add-action-project.yml @@ -0,0 +1,16 @@ +name: Add new issues to project board + +on: + issues: + types: [opened] + +jobs: + add-to-project: + if: github.repository_owner == 'cowprotocol' + name: Add issue to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.3.0 + with: + project-url: https://github.com/orgs/cowprotocol/projects/8 + github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yml similarity index 54% rename from .github/workflows/cla.yaml rename to .github/workflows/cla.yml index 3713922c..776719b5 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yml @@ -6,31 +6,24 @@ on: pull_request_target: types: [opened, closed, synchronize] +permissions: + actions: write + contents: write + pull-requests: write + statuses: write + 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]'