diff --git a/.github/workflows/cla.yaml b/.github/workflows/cla.yaml index e6903de236..3713922cf1 100644 --- a/.github/workflows/cla.yaml +++ b/.github/workflows/cla.yaml @@ -4,7 +4,7 @@ on: issue_comment: types: [created] pull_request_target: - types: [opened,closed,synchronize] + types: [opened, closed, synchronize] jobs: cla: @@ -14,24 +14,23 @@ jobs: id: team uses: actions/github-script@v6 with: + github-token: ${{ secrets.ORG_TOKEN }} result-encoding: string script: | - const collaborators = await github.paginate( - github.rest.repos.listCollaborators, - { - owner: context.repo.owner, - repo: context.repo.repo, - }); - return collaborators.map(m => m.login).join(","); + 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 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PERSONAL_ACCESS_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] + allowlist: '${{ steps.team.outputs.result }},*[bot]' diff --git a/COPYRIGHT.md b/COPYRIGHT.md new file mode 100644 index 0000000000..7e160a59df --- /dev/null +++ b/COPYRIGHT.md @@ -0,0 +1,13 @@ +# Intellectual Property Notice + +Copyright (c) 2021 Gnosis Ltd +Copyright (c) 2022 Cow Services Lda + +Except as otherwise noted (below and/or in individual files), this project is licensed under +the Apache License, Version 2.0 ([`LICENSE-APACHE`](LICENSE-APACHE) or ) or +the MIT license, ([`LICENSE-MIT`](LICENSE-MIT) or ), at your option. + +Code under the following sub-directories are licensed exclusively under +the GNU Lesser General Public License v3.0 or later ([`LICENSE`](LICENSE) or ): +- [`crates/orderbook`](crates/orderbook) +- [`crates/solver`](crates/solver) diff --git a/crates/testlib/Cargo.toml b/crates/testlib/Cargo.toml index 17a8c16e1d..36fcbfc3e8 100644 --- a/crates/testlib/Cargo.toml +++ b/crates/testlib/Cargo.toml @@ -3,7 +3,7 @@ name = "testlib" version = "0.1.0" authors = ["Gnosis Developers ", "Cow Protocol Developers "] edition = "2018" -license = "GPL-3.0-or-later" +license = "MIT" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html