What the rule checks#
With required signing on a branch, "contributors and bots can only push commits that have been signed and verified to the branch." Require signed commits GitHub marks a commit Verified when it "is signed and the signature was successfully verified," using GPG, SSH or S/MIME. For GPG and SSH, verification is against a public key added to a GitHub account. For S/MIME, it is against a trusted root certificate, and you do not upload a key. About commit signature verification
The rule is available in rulesets and in classic branch protection. The two differ when a branch is created: "with rulesets, we check only the commits that aren't accessible from other branches, whereas with branch protection rules, we do not verify signed commits unless you restrict pushes that create matching branches."
Verification is recorded once and kept. "When a commit signature is verified upon being pushed to GitHub, a verification record is stored alongside the commit," and it persists "even if signing keys are rotated, revoked, or if contributors leave the organization." Persistent commit signature verification A later key revocation does not mark old commits unverified.
What a signature does not say#
A signature covers the commit object, and the commit object's author field is just text the committer chose. This local run shows Git's behavior, not GitHub's: in a throwaway repository with a throwaway GPG key, it signs a commit while naming someone else as its author. Progress lines are trimmed from the output here and below:
$ git commit -q -S -m "Signed change" --author="Someone Else <someone@example.com>"
$ git log -1 --format="author: %an <%ae>%ncommitter: %cn <%ce>%nsignature: %G? %GS"
author: Someone Else <someone@example.com>
committer: Dev Example <dev@example.com>
signature: G Dev Example <dev@example.com>
Git reports a good signature (G) from the signer's key while the author line names another person. GitHub's vigilant mode addresses part of this: when it is enabled, a commit whose author "is not the committer" and has enabled vigilant mode shows as Partially verified. Vigilant mode is off by default, and the rule makes room for it: "If you have enabled vigilant mode in your account settings, which indicates that your commits will always be signed, any commits that GitHub identifies as 'Partially verified' are permitted on branches that require signed commits." Require signed commits
A signature also says nothing about review. Every commit on a pull request branch can be verified and the pull request can still merge with no approval if the branch does not require one. Signatures and required reviews answer different questions: who held the key, and who looked.
Where signatures disappear#
Rebasing creates new commits, and Git does not re-sign them unless asked. Continuing the same local run, the topic branch was rebased onto a main that had moved:
$ git rebase main
Successfully rebased and updated refs/heads/topic.
$ git log -1 --format="signature: %G?"
signature: N
$ git rebase --force-rebase -S main
Successfully rebased and updated refs/heads/topic.
$ git log -1 --format="signature: %G? %GS"
signature: G Dev Example <dev@example.com>
N means no signature. A contributor who rebases a pull request onto a fresh base without -S, or without commit.gpgsign set, produces unsigned commits and gets blocked. GitHub's troubleshooting page gives the fix: update the signing settings, then "use an interactive rebase on your local branch to rewrite your Git history with signed commits." Troubleshooting rules
GitHub's own merge methods behave differently:
| Path | What the documentation says |
|---|---|
| Commits made in the web interface | GitHub "will automatically use GPG to sign" them, and they show as verified |
| Squash merge with unsigned commits on the head branch | Can be blocked, "even though GitHub would sign the final squash commit," because GitHub checks the commits its test merge introduces |
| Rebase and merge | Head branch commits are added "without commit signature verification," because GitHub cannot sign with the committer's key |
| Bots and GitHub Apps | Verified only if the request is authenticated as the app "and contains no custom author information, custom committer information, and no custom signature information" |
Sources: About commit signature verification, Require signed commits and About merge methods on GitHub.
The bot row is the one that most often breaks automation. A release workflow that commits through the API with a custom author, or a bot that commits locally in CI with no signing key, produces unverified commits, and its pushes to a protected branch fail once the rule is active. To merge a pull request blocked by unsigned commits, the documentation says to "rewrite and sign the unsigned commits on the head branch, or ask someone with permission to bypass the applicable protections to merge the pull request."
The cost#
Every human contributor needs a signing key registered on their account, and signing configured on every machine they commit from. SSH signing is the simplest, since you "can even upload your existing authentication key to GitHub to also use as a signing key," and it needs Git 2.34 or later. Every automation that writes to a protected branch must commit through an authenticated GitHub App without custom identity fields, or sign with its own key. Expect a period of blocked pushes and rewritten branches. The false positive measurement guide shows how to count them before you enforce the rule.
The decision#
Require signed commits on protected branches when you need each commit on those branches tied to a verified key, for example because an audit asks who committed each change. Before enforcing, inventory every bot and workflow that pushes, decide whether you allow rebase merging, and publish setup steps for contributors. Do not count signatures as review. Keep required approvals and linear history as separate decisions.