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

Vendor: GitHub · https://cli.github.com/ · pkg:github/cli/cli · Last reviewed 2026-12-05 · History

Summary

  • gh is a TLS client. What it offers is decided by Go, not by gh.
  • At commit a2e5290 (2026-12-04) the source declares go 1.27.0 and toolchain go1.27.4.1
  • Go has offered the hybrid X25519MLKEM768 key agreement by default since Go 1.24.2 gh sets nothing that would turn it off in its go.mod at 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”; GODEBUG tlsmlkem=0 reverts it.2 go.mod has no godebug line at the cited commit;1 whether gh sets curve preferences elsewhere has not been checked. State: default, inherited from Go, subject to that check and to server support.
  • Git operations: gh calls the installed git; those connections use Git’s TLS library or the user’s SSH client, not Go. See SSH.
  • Attestations and releases: gh is the verifier. gh attestation verify checks “cryptographically signed attestations”;3 gh release verify checks “that a GitHub Release is accompanied by a valid cryptographically signed attestation”.4 Depends on github.com/sigstore/sigstore-go v1.4.1 and github.com/theupdateframework/go-tuf/v2 v2.6.0.1 Algorithms are Sigstore’s; see Actions. Classical.
  • Releases of gh: “Since version 2.50.0, gh has been producing Build Provenance Attestation”, verifiable with gh attestation verify -R cli/cli or cosign.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 unless GODEBUG=tlsmlkem=0 is set.2
  • Disabling classical: gh has no setting for TLS groups.

References

  1. cli/cli, go.mod at commit a2e5290fb623f189fd78b631d755e295a454ee42. https://github.com/cli/cli/blob/a2e5290fb623f189fd78b631d755e295a454ee42/go.mod (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4 ↩5

  2. Go 1.24 Release Notes, crypto/tls. https://go.dev/doc/go1.24 (accessed 2026-12-05) ↩ ↩2 ↩3 ↩4

  3. GitHub CLI manual, “gh attestation verify”. https://cli.github.com/manual/gh_attestation_verify (accessed 2026-12-05) ↩

  4. GitHub CLI manual, “gh release verify”. https://cli.github.com/manual/gh_release_verify (accessed 2026-12-05) ↩

  5. cli/cli, README.md at commit a2e5290fb623f189fd78b631d755e295a454ee42. https://github.com/cli/cli/blob/a2e5290fb623f189fd78b631d755e295a454ee42/README.md (accessed 2026-12-05) ↩


Edit: GitHub CLI

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.