diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml new file mode 100644 index 000000000..dc339a472 --- /dev/null +++ b/.github/workflows/cla.yml @@ -0,0 +1,24 @@ +name: "CLA Signature Bot" +on: + issue_comment: + types: [created] + pull_request_target: + types: [opened,closed,synchronize] + +jobs: + CLABot: + if: github.event_name == 'pull_request_target' || contains(github.event.comment.html_url, '/pull/') + runs-on: ubuntu-latest + steps: + - name: "CLA Signature Bot" + uses: MetaMask/cla-signature-bot@v3.0.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + path-to-signatures: 'cla.json' + url-to-cladocument: 'https://metamask.io/cla.html' + # This branch can't have protections, commits are made directly to the specified branch. + branch: 'cla-signatures' + allowlist: dependabot + allow-organization-members: true + blockchain-storage-flag: false