The Contributor Pledge

Check the pledge on pull requests

You can adopt the pledge by linking to it in your contributing guide. If you also want a signature check on GitHub, install the optional Contributor Pledge app and choose the repositories where it should run.

Install the GitHub App

The app reads pull requests and writes a check named Contributor Pledge. It needs no access to repository contents. Each time someone opens, reopens or updates a pull request, the app checks the author's GitHub account ID. If the author has signed, the check links to their public signature.

If the check fails, follow its link to read and sign the pledge. Contributors who signed with email can link their GitHub profile in their pledge account. The check updates automatically, and you can also rerun it from the pull request's Checks tab.

Require a signature before merging

The check is advisory by default. To require it, let it run on a pull request first. In the repository settings, open Rules → Rulesets and edit an active branch ruleset that targets your merge branch. Enable Require status checks to pass, add Contributor Pledge, select the app as the source and save. You can also add the check to an existing branch protection rule.

Pull requests authored by GitHub bot accounts, including Dependabot and Renovate, pass the pledge check automatically.