|
| 1 | +name: "CLA Assistant" |
| 2 | +on: |
| 3 | + issue_comment: |
| 4 | + types: [created] |
| 5 | + pull_request_target: |
| 6 | + types: [opened,closed,synchronize] |
| 7 | + |
| 8 | +permissions: |
| 9 | + actions: write |
| 10 | + contents: write |
| 11 | + pull-requests: write |
| 12 | + statuses: write |
| 13 | + |
| 14 | +jobs: |
| 15 | + CLAAssistant: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - name: Checkout Private Repo for Allowlist |
| 19 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2 |
| 20 | + with: |
| 21 | + repository: OpenZeppelin/cla-sigs |
| 22 | + token: ${{ secrets.CLA_SIGS_ACCESS_PAT }} |
| 23 | + sparse-checkout: | |
| 24 | + allowlist.txt |
| 25 | + sparse-checkout-cone-mode: false |
| 26 | + - name: Read Allowlist File |
| 27 | + id: read_allowlist |
| 28 | + run: | |
| 29 | + ALLOWLIST=$(cat allowlist.txt) |
| 30 | + echo "allowlist=$ALLOWLIST" >> $GITHUB_OUTPUT |
| 31 | + - name: "CLA Assistant" |
| 32 | + 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' |
| 33 | + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 #v2.6.1 |
| 34 | + env: |
| 35 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 36 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGS_ACCESS_PAT }} |
| 37 | + with: |
| 38 | + path-to-signatures: 'signatures/${{ github.event.repository.name }}/v1_cla.json' |
| 39 | + path-to-document: 'https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md' |
| 40 | + branch: 'main' |
| 41 | + allowlist: ${{ steps.read_allowlist.outputs.allowlist }} |
| 42 | + remote-organization-name: 'OpenZeppelin' |
| 43 | + remote-repository-name: 'cla-sigs' |
| 44 | + custom-notsigned-prcomment: > |
| 45 | + Thank you for your contribution to OpenZeppelin Contracts Wizard. |
| 46 | + Before being able to integrate those changes, we would like you to |
| 47 | + sign our [Contributor License Agreement](https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md). |
| 48 | +
|
| 49 | + You can sign the CLA by just posting a Pull Request Comment with the sentence below. Thanks. |
| 50 | + custom-pr-sign-comment: 'I have read the CLA Document and I hereby sign the CLA' |
0 commit comments