This organization uses a centralized reusable GitHub Actions workflow to verify whether contributors have signed the required Contribution License Agreement (CLA). The workflow lives in this .github repository and can be invoked by any repository that opts in.
- Create the workflow file in the repository's root directory:
cd /path/to/repository/
mkdir -p .github/workflows
touch .github/workflows/cla.yml- Paste the workflow code below inside the
cla.ymlfile:
---
name: CLA Workflow
permissions:
contents: write
checks: write
actions: write
pull-requests: write
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- main
- master
jobs:
cla:
uses: clima/.github/.github/workflows/cla_template.yml@main
secrets: inherit