Vendor: GitHub · https://cli.github.com/ · pkg:github/cli/cli · Last reviewed 2026-12-05 · History
Summary
ghis a TLS client. What it offers is decided by Go, not bygh.- At commit
a2e5290(2026-12-04) the source declaresgo 1.27.0andtoolchain go1.27.4.1 - Go has offered the hybrid X25519MLKEM768 key agreement by default since Go 1.24.2
ghsets nothing that would turn it off in itsgo.modat that commit.1 - A hybrid key agreement is used only if the server also supports it. GitHub has not published whether its HTTPS endpoints do; see HTTPS.
- Attestation verification uses Sigstore and is classical.
Cryptographic operations
- API connections: client over TLS 1.3 when the server supports it, using Go’s
crypto/tls. Go 1.24: “The new post-quantum X25519MLKEM768 key exchange mechanism is now supported and is enabled by default when Config.CurvePreferences is nil”;GODEBUGtlsmlkem=0reverts it.2go.modhas nogodebugline at the cited commit;1 whetherghsets curve preferences elsewhere has not been checked. State: default, inherited from Go, subject to that check and to server support. - Git operations:
ghcalls the installedgit; those connections use Git’s TLS library or the user’s SSH client, not Go. See SSH. - Attestations and releases:
ghis the verifier.gh attestation verifychecks “cryptographically signed attestations”;3gh release verifychecks “that a GitHub Release is accompanied by a valid cryptographically signed attestation”.4 Depends ongithub.com/sigstore/sigstore-gov1.4.1 andgithub.com/theupdateframework/go-tuf/v2v2.6.0.1 Algorithms are Sigstore’s; see Actions. Classical. - Releases of gh: “Since version 2.50.0,
ghhas been producing Build Provenance Attestation”, verifiable withgh attestation verify -R cli/cliorcosign.5
Versions
| Change | Version | Package URL | Source |
|---|---|---|---|
Built with Go 1.27 (toolchain go1.27.4) |
trunk at a2e5290, 2026-12-04 |
pkg:github/cli/cli@a2e5290fb623f189fd78b631d755e295a454ee42 |
1 |
| Hybrid key agreement default in Go’s TLS | Go 1.24 | pkg:golang/stdlib@v1.24.0 |
2 |
Which gh release first shipped with Go 1.24 or later has not been traced.
Configuration
- Enabling PQC: none in
gh. Go 1.24 or later offers the hybrid group unlessGODEBUG=tlsmlkem=0is set.2 - Disabling classical:
ghhas no setting for TLS groups.
References
-
cli/cli,
go.modat commita2e5290fb623f189fd78b631d755e295a454ee42. https://github.com/cli/cli/blob/a2e5290fb623f189fd78b631d755e295a454ee42/go.mod (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5 -
Go 1.24 Release Notes, crypto/tls. https://go.dev/doc/go1.24 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4
-
GitHub CLI manual, “gh attestation verify”. https://cli.github.com/manual/gh_attestation_verify (accessed 2026-12-05) ↩
-
GitHub CLI manual, “gh release verify”. https://cli.github.com/manual/gh_release_verify (accessed 2026-12-05) ↩
-
cli/cli,
README.mdat commita2e5290fb623f189fd78b631d755e295a454ee42. https://github.com/cli/cli/blob/a2e5290fb623f189fd78b631d755e295a454ee42/README.md (accessed 2026-12-05) ↩