|
| 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: Harden the runner (Audit all outbound calls) |
| 19 | + uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0 |
| 20 | + with: |
| 21 | + egress-policy: audit |
| 22 | + |
| 23 | + - name: Checkout Private Repo for Allowlist |
| 24 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 25 | + with: |
| 26 | + repository: OpenZeppelin/cla-sigs |
| 27 | + token: ${{ secrets.CLA_SIGS_ACCESS_PAT }} |
| 28 | + sparse-checkout: | |
| 29 | + allowlist.txt |
| 30 | + sparse-checkout-cone-mode: false |
| 31 | + - name: Read Allowlist File |
| 32 | + id: read_allowlist |
| 33 | + run: | |
| 34 | + ALLOWLIST=$(cat allowlist.txt) |
| 35 | + echo "allowlist=$ALLOWLIST" >> $GITHUB_OUTPUT |
| 36 | + - name: "CLA Assistant" |
| 37 | + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement') || github.event_name == 'pull_request_target' |
| 38 | + uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1 |
| 39 | + env: |
| 40 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 41 | + PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGS_ACCESS_PAT }} |
| 42 | + with: |
| 43 | + path-to-signatures: 'signatures/${{ github.event.repository.name }}/v1_cla.json' |
| 44 | + path-to-document: 'https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md' |
| 45 | + branch: 'main' |
| 46 | + allowlist: ${{ steps.read_allowlist.outputs.allowlist }} |
| 47 | + remote-organization-name: 'OpenZeppelin' |
| 48 | + remote-repository-name: 'cla-sigs' |
| 49 | + custom-notsigned-prcomment: > |
| 50 | + Thank you for your contribution to OpenZeppelin Safe Utils. |
| 51 | + Before being able to integrate those changes, we would like you to |
| 52 | + sign our [Contributor License Agreement](https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md). |
| 53 | +
|
| 54 | + You can sign the CLA by just posting a Pull Request Comment with the sentence below. Thanks. |
| 55 | + custom-pr-sign-comment: 'I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement' |
| 56 | + |
0 commit comments