Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: CLA Assistant
on:
issue_comment:
types:
- created
pull_request_target:
types:
- opened
- closed
- synchronize
jobs:
CLAAssistant:
runs-on: ubuntu-latest
permissions:
actions: write
contents: write
pull-requests: write
statuses: write
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
with:
egress-policy: audit
- name: Checkout Private Repo for Allowlist
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: OpenZeppelin/cla-sigs
token: ${{ secrets.CLA_SIGS_ACCESS_PAT }}
sparse-checkout: |
allowlist.txt
sparse-checkout-cone-mode: false
- name: Read Allowlist File
id: read_allowlist
run: |
ALLOWLIST=$(cat allowlist.txt)
echo "allowlist=$ALLOWLIST" >> $GITHUB_OUTPUT
- name: Capitalize repository name
id: repo_name
env:
REPO_NAME: ${{ github.event.repository.name }}
run: echo "name=${REPO_NAME^}" >> "$GITHUB_OUTPUT"
- name: CLA Assistant
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'
uses: contributor-assistant/github-action@ca4a40a7d1004f18d9960b404b97e5f30a505a08 # v2.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_SIGS_ACCESS_PAT }}
with:
path-to-signatures: signatures/${{ github.event.repository.name }}/v1_cla.json
path-to-document: https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md
branch: main
allowlist: ${{ steps.read_allowlist.outputs.allowlist }}
remote-organization-name: OpenZeppelin
remote-repository-name: cla-sigs
custom-notsigned-prcomment: >
Thank you for your contribution to OpenZeppelin ${{ steps.repo_name.outputs.name }}. Before being able to integrate those changes, we would like you to sign our [Contributor License Agreement](https://github.com/OpenZeppelin/cla-assistant/blob/main/openzeppelin_2025_cla.md).
You can sign the CLA by just posting a Pull Request Comment with the sentence below. Thanks.
custom-pr-sign-comment: I confirm that I have read and hereby agree to the OpenZeppelin Contributor License Agreement
Loading