Documentation
¶
Overview ¶
Command cla is the CLA check of the repository (see CLA.md and .github/workflows/cla.yml). It runs from the default branch on a workflow_run (after cla-request, which a pull request triggers) or an issue_comment event, so nothing of a pull request is ever checked out or run and no pull_request_target is needed. It reads the event from GITHUB_EVENT_PATH only to learn where to look, then decides from the GitHub API:
- every commit author (and committer, see participants) of the pull request must have signed or be on the allowlist;
- a signature is a comment of exactly the sentence in CLA.md by one of them; it is recorded in signatures/cla.json on the cla-signatures branch, keyed by the numeric GitHub id;
- the result is the commit status "cla" on the head commit and one comment of the bot, found by a hidden marker.
Environment: GITHUB_TOKEN, GITHUB_REPOSITORY, GITHUB_EVENT_NAME, GITHUB_EVENT_PATH (all set by Actions), CLA_ALLOWLIST (comma-separated logins), and optionally GITHUB_API_URL and GITHUB_SERVER_URL.