diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b528c7e..1e96464 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,6 +2,14 @@ Contributions are welcome. This guide covers how the repository is laid out, how to add a tool, how to build and check your changes, and how they are reviewed and released. +## Contributor License Agreement + +Before your first pull request to this repository can be merged, you need to sign the [Lanka Software Foundation Contributor License Agreement](https://cla-assistant.io/OpenNSW/tools). It grants Lanka Software Foundation a license to your contributions, and you keep the copyright. Read it before you sign. If your employer may own what you write, read section 4 of the agreement first. + +If you haven't signed yet, the CLA Assistant bot comments on your pull request with a link to sign, and the `license/cla` check blocks the merge until every author of the pull request's commits has signed. Signatures are kept per repository, so each OpenNSW repository you contribute to asks you to sign. + +The bot matches each commit to a GitHub account by its author email. If the bot can't match a commit, add that email to your account under **Settings → Emails** and use the recheck link in the bot comment, or amend the commits to use an email that is on your account and push them again. + ## Layout Each tool lives in its own directory and is its own Go module: @@ -108,6 +116,7 @@ Bypass the hooks with `git commit --no-verify` or `git push --no-verify`, or ski | Secret Scan | gitleaks | | CI | Passes only when every job above passed. Branch protection requires it | | Conventional Commit Title | The PR title follows Conventional Commits | +| CLA (`license/cla`) | Every commit author has signed the [CLA](#contributor-license-agreement). CLA Assistant reports it, not a workflow, and exempts `dependabot[bot]` and `github-actions[bot]`. Branch protection requires it | CI enforces every gate on its own: `--no-verify` skips the local hooks, not CI.