Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Vendor: GitHub · https://docs.github.com/en/authentication/managing-commit-signature-verification · Last reviewed 2026-12-05 · History

Summary

  • GitHub verifies GPG, SSH and S/MIME signatures. The documentation does not list which key types or algorithms it verifies for any of the three (checked 2026-12-05).1
  • No post-quantum signature type is documented or announced.
  • SSH signing keys follow the SSH key rules: new RSA keys must be at least 3072 bits “both for signing and authentication”.2
  • A verification is recorded once and kept, including after the key is revoked or expires.1

Cryptographic operations

Verifying user signatures

GitHub is the verifier. These are signatures at rest, checked for as long as the repository exists.

Method How GitHub verifies Source
GPG “GitHub uses OpenPGP libraries” against a public key on the account 1
SSH “GitHub uses ssh_data, an open source Ruby library”; needs Git 2.34 or later 1
S/MIME X.509 keys, checked against “the Debian ca-certificates package, the same trust store used by Mozilla browsers”; needs Git 2.19 or later 1
  • The algorithm is the one in the user’s key; for SSH, the classical types on the SSH page. Whether a key type such as ssh-mldsa44-ed25519 would verify is not documented (checked 2026-12-05).
  • Commits added with Rebase and Merge “are added to the base branch without commit signature verification”.1

Persistent verification records

  • “When a commit signature is verified upon being pushed to GitHub, a verification record is stored alongside the commit.” It persists “even if signing keys are rotated, revoked, or if contributors leave the organization”, and “GitHub will not re-verify previously signed commits”.1 “Verified” on an old commit reflects the check at push time.

Commits signed by GitHub

  • GitHub is the signer: “GitHub will automatically use GPG to sign commits you make using the web interface”; public key at https://github.com/web-flow.gpg.1 Also in the commit_signing_keys field of the REST API meta endpoint.3 Key algorithm not stated (checked 2026-12-05).

Configuration

  • Enabling PQC: not possible; no post-quantum signing key type is documented as accepted.
  • Disabling classical: not possible; no setting restricts which algorithms count as verified.

Vendor commitments

None published (checked 2026-12-05).

References

  1. GitHub Docs, “About commit signature verification”. https://docs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verification (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8

  2. GitHub Changelog, “Security improvements for SSH”, 2026-09-22. https://github.blog/changelog/2026-09-22-security-improvements-for-ssh/ (accessed 2026-12-05) ↩

  3. GitHub Docs, “REST API endpoints for meta data”. https://docs.github.com/en/rest/meta/meta (accessed 2026-12-05) ↩


Edit: GitHub commit signing

If you give an email address it is recorded publicly as the author of the commit, and GitHub will link the commit to your account if that address belongs to one.

Edits are reviewed before they appear. By submitting you release your contribution under CC BY-SA 4.0. Read the editorial guidelines first.

This site uses Just the Docs, a documentation theme for Jekyll.