Repository navigation
Releases
2.104.0-preview
Protect private forks when deleting repositories
gh repo delete now warns when deleting a private or internal repository will also delete its forks. The additional confirmation is required even with --yes.
Non-interactive workflows and agents must explicitly accept the cascading deletion:
gh repo delete OWNER/REPO --yes --accept-cascading-deletion-of-private-forksWhat's Changed
✨ Features
🐛 Fixes
- fix(auth status): surface underlying rate-limit, server, and network errors in terminal output by @babakks and @Copilot in #15009
- fix(auth): skip token refresh when
gh's state directory is not writable by @babakks in #14845
📚 Docs & Chores
- Use REST to apply issue triage labels by @BagToad in #15041
- Prevent repeated Dependabot triage assessments by @BagToad in #15002
- Apply issue triage labels directly by @BagToad in #15001
- Provide verified build versions to issue triage by @BagToad in #15000
- Use a synthetic namespace for triage fixtures by @BagToad in #14976
- Remove the accidental issue-triage model pin by @BagToad in #14972
- Add a fake GitHub API runner for reproductions by @BagToad in #14951
- Clarify which hosts use
GH_ENTERPRISE_TOKENby @BagToad in #14918 - Regenerate triage workflows with
gh-awv1.0.1 by @tidy-dev in #14910 - Test the
ShowRefsoption separator by @BagToad in #14879 - Fix local extension-install test path normalization by @bobrik in #14854
- Save Go caches only from trunk by @williammartin in #14840
- Add a private vulnerability report form by @BagToad in #14825
- Replace
msgpackwith a minimal node ID encoder by @tj-smith47 in #14801 - Test the Git client with real repositories by @williammartin in #14348
Dependencies
- chore(deps): bump
github.com/klauspost/compressfrom 1.20.3 to 1.20.4 by @dependabot in #15040 - chore(deps): bump
charm.land/lipgloss/v2from 2.0.6 to 2.1.0 by @dependabot in #15039 - chore(deps): bump Go toolchain from 1.27.3 to 1.27.4 by @github-actions[bot] in #15028
- chore(deps): bump
golang.org/x/sysfrom 0.49.0 to 0.50.0 by @dependabot in #15010 - chore(deps): bump
golang.org/x/syncfrom 0.24.0 to 0.25.0 by @dependabot in #14998 - chore(deps): bump the
codeql-actionsgroup across 1 directory with 3 updates by @dependabot in #14964 - chore(deps): bump
github.com/spf13/pflagfrom 1.0.10 to 1.1.0 by @dependabot in #14963 - chore(deps): bump
github.com/yuin/goldmarkfrom 1.8.6 to 1.8.7 by @dependabot in #14907 - chore(deps): bump
charm.land/bubbletea/v2from 2.1.0 to 2.1.1 by @dependabot in #14906 - chore(deps): bump
github.com/sigstore/sigstore-gofrom 1.3.0 to 1.4.0 by @dependabot in #14905 - chore(deps): bump
google.golang.org/grpcfrom 1.84.0 to 1.85.0 by @dependabot in #14878 - chore(deps): bump the
codeql-actionsgroup with 3 updates by @dependabot in #14824
New Contributors
- @tj-smith47 made their first contribution in cli/cli#14801
- @bobrik made their first contribution in cli/cli#14854
Full Changelog: cli/cli@v2.103.3...v2.104.0
2.103.3-preview
2.103.2-preview
🐛 Fixes
- Allow server to arbitrate which GitHub App installation tokens can attach files by @martinajir in #14804
- Defer
--attachcredential checks to the upload endpoint by @BagToad in #14805
New Contributors
- @martinajir made their first contribution in cli/cli#14804
Full Changelog: cli/cli@v2.103.1...v2.103.2
2.103.2-preview
🐛 Fixes
- Allow server to arbitrate which GitHub App installation tokens can attach files by @martinajir in #14804
- Defer
--attachcredential checks to the upload endpoint by @BagToad in #14805
New Contributors
- @martinajir made their first contribution in cli/cli#14804
Full Changelog: cli/cli@v2.103.1...v2.103.2
2.102.0-preview
Security
Four security vulnerabilities have been identified, and fixed, in this release. Users are advised to update gh to version v2.102.0 as soon as possible.
gh release download, gh run download, gh repo read-file --output, and gh attestation download could write remote content to an unintended local file when the destination contained symbolic links.
See GHSA-39wj-f2f4-978v for more information.
gh attestation verify compared the --source-ref value case-insensitively, so an attestation built from a branch whose name differs only in case could satisfy a policy that named a different branch.
See GHSA-4mq3-hpgx-9cx8 for more information.
Interactive gh skill search passed repository paths from search results to gh skill install without an option separator, so a search result could inject installer options and change where skill files were written.
See GHSA-qcwj-mr2r-2cx7 for more information.
gh attestation verify matched the --signer-workflow value against only the start of the signing certificate's identity, so an attestation signed by a different workflow in the pinned repository could pass verification when its path began with the pinned value.
See GHSA-wjmr-j3rp-mh2g for more information.
What's Changed
🐛 Fixes
- Allow
ghu_tokens for supported actors to attach files by @BagToad in #14516 - Allow repo set-default --unset without an argument by @williammartin in #14540
📚 Docs & Chores
- Prioritize HackerOne for vulnerability reports by @BagToad in #14497
- Clarify reviewer-facing PR guidance by @williammartin in #14509
- Add a skill for chaptered CLI recordings by @BagToad in #14475
- Improve CLI recording rendering by @williammartin in #14507
- Mention gh CLI in the README intro by @BagToad in #14517
- Document search operator support in
gh searchhelp by @waldyrious in #14519 - Remove host versions from
gh project item-listhelp by @BagToad in #14553
Dependencies
- chore(deps): bump the codeql-actions group with 3 updates by @dependabot in #14486
- chore(deps): bump nodeselector/setup-apple-codesign from 0.0.2 to 0.0.3 by @dependabot in #14487
- chore(deps): bump charm.land/bubbletea/v2 from 2.0.9 to 2.0.10 by @dependabot in #14541
- chore(deps): bump github.com/klauspost/compress from 1.20.0 to 1.20.1 by @dependabot in #14542
- chore(deps): bump the codeql-actions group with 3 updates by @dependabot in #14543
Full Changelog: cli/cli@v2.101.0...v2.102.0
2.101.0-preview
Linux package repository signing key rotation
GitHub CLI's APT and RPM repositories, along with individual RPM packages, are now signed only with the new PGP key (fingerprint: 7F38BBB59D064DBCB3D84D725612B36462313325)
Important
Linux users who installed gh from the official APT or RPM repositories before April 8, 2026, and have not refreshed their keyring, may now see package installation or update failures. Follow the PGP signing key rotation guidance to check and update your keyring. Users on Windows or macOS, and users who installed gh through Homebrew, GitHub Releases, another package manager, or from source, are not affected.
Copy authentication codes to the clipboard by default
gh auth login and gh auth refresh now copy OAuth device codes to the clipboard by default, saving a manual copy step during authentication.
To persistently opt out, run:
gh config set clipboard disabledExplicit clipboard options still take precedence for an individual invocation.
What's Changed
✨ Features
- Add clipboard preference for auth flows and default to enabled by @williammartin in cli/cli#14345
🐛 Fixes
- Use API SSH URLs for repository clones by @williammartin in cli/cli#14346
- Validate repository names during interactive creation by @sergiou87 in cli/cli#14313
- Finalize telemetry at invocation completion by @williammartin in cli/cli#14390
- Record attachment operation counts in telemetry by @BagToad in cli/cli#14360
- Propagate gh path to extensions by @williammartin in cli/cli#14282
- Delete repo garden command by @williammartin in cli/cli#14416
- Fix remote branch deletion for owner case mismatch by @williammartin in cli/cli#14429
- Retire multi-account migration by @williammartin in cli/cli#14430
📚 Docs & Chores
- docs: announce Linux PGP key rotation by @babakks in cli/cli#14340
- Require verified SHAs in issue-triage permalinks by @sergiou87 in cli/cli#14343
- Add VHS demo skill by @williammartin in cli/cli#14334
- docs: fix broken "GitHub language" link in primer foundations by @areesh-ali in cli/cli#14363
- Fix and validate Go bump workflow by @williammartin in cli/cli#14347
- chore: sign Linux repositories only with the new PGP key by @babakks in cli/cli#14197
- Rewrite CLI agent guidance by @williammartin in cli/cli#14388
- Prepare exit errors for Go 1.27 by @williammartin in cli/cli#14397
- Reduce rate limiting and reduce time taken for acceptance tests by @williammartin in cli/cli#14320
- Filter acceptance tests for installation token capabilities by @williammartin in cli/cli#14354
- Fix Go bump workflow authentication by @williammartin in cli/cli#14412
- Run acceptance tests in Actions with a GitHub App token by @williammartin in cli/cli#14356
- Fix acceptance script paths on Windows by @williammartin in cli/cli#14414
- Wait for repository readiness before archiving by @williammartin in cli/cli#14415
- Update Go bump validation tools by @williammartin in cli/cli#14428
- Recognize maintainer authorization by @williammartin in cli/cli#14438
- Safely replace stale Go bump branches by @williammartin in cli/cli#14441
- Use internal Apple codesign action by @williammartin in cli/cli#14437
- Test explicit default repository resolution by @williammartin in cli/cli#14460
- Revert "Use internal Apple codesign action" by @williammartin in cli/cli#14462
Dependencies
- chore(deps): bump github.com/klauspost/compress from 1.19.2 to 1.20.0 by @dependabot[bot] in cli/cli#14376
- chore(deps): bump github.com/google/go-containerregistry from 0.22.0 to 0.22.1 by @dependabot[bot] in cli/cli#14377
- chore(deps): bump github.com/yuin/goldmark from 1.8.5 to 1.8.6 by @dependabot[bot] in cli/cli#14378
- chore(deps): bump golang.org/x/sync from 0.22.0 to 0.23.0 by @dependabot[bot] in cli/cli#14391
- chore(deps): bump github.com/microsoft/dev-tunnels from 0.1.27 to 0.2.0 by @dependabot[bot] in cli/cli#14375
- chore(deps): bump golang.org/x/sys from 0.47.0 to 0.48.0 by @dependabot[bot] in cli/cli#14417
- Bump Go to 1.27.1 by @github-actions[bot] in cli/cli#14442
- chore(deps): bump azure/login from 3.0.2 to 3.1.0 by @dependabot[bot] in cli/cli#14447
- chore(deps): bump the codeql-actions group with 3 updates by @dependabot[bot] in cli/cli#14446
- chore(deps): bump golang.org/x/term from 0.45.0 to 0.46.0 by @dependabot[bot] in cli/cli#14445
- chore(deps): bump golang.org/x/text from 0.41.0 to 0.42.0 by @dependabot[bot] in cli/cli#14444
- chore(deps): bump golang.org/x/crypto from 0.56.0 to 0.57.0 by @dependabot[bot] in cli/cli#14443
- Bump github.com/cli/go-gh/v2 to v2.16.1 by @niik in cli/cli#14461
New Contributors
- @areesh-ali made their first contribution in cli/cli#14363
Full Changelog: cli/cli@v2.100.0...v2.101.0
2.100.0-preview.4
Prerelease publish verification
Sponsors
The following sponsors made this release possible: @clarius, @MFB-Technologies-Inc, @sandrock, @drivenet, @Keflon, @tbolon, @rbnswartz, @jfoshee, @Mrxx99, @eajhnsn1, @Jonathan-Hickey, @KenBonny, @SimonCropp, @agileworks-eu, @arsdragonfly, @vezel-dev, @ChilliCream, @4OTC, @DominicSchell, @adalon, @torutek, @mccaffers, @SeikaLogiciel, @wizardness, @eska-gmbh, @geodata-no, @jslachta.
Thanks 💜
2.100.0-preview.3
NuGet.org retry after support please-retry
Sponsors
The following sponsors made this release possible: @clarius, @MFB-Technologies-Inc, @sandrock, @drivenet, @Keflon, @tbolon, @rbnswartz, @jfoshee, @Mrxx99, @eajhnsn1, @Jonathan-Hickey, @KenBonny, @SimonCropp, @agileworks-eu, @arsdragonfly, @vezel-dev, @ChilliCream, @4OTC, @DominicSchell, @adalon, @torutek, @mccaffers, @SeikaLogiciel, @wizardness, @eska-gmbh, @geodata-no, @jslachta.
Thanks 💜
2.100.0-preview.2
Sponsors
The following sponsors made this release possible: @clarius, @MFB-Technologies-Inc, @sandrock, @drivenet, @Keflon, @tbolon, @rbnswartz, @jfoshee, @Mrxx99, @eajhnsn1, @Jonathan-Hickey, @KenBonny, @SimonCropp, @agileworks-eu, @arsdragonfly, @vezel-dev, @ChilliCream, @4OTC, @DominicSchell, @adalon, @torutek, @mccaffers, @SeikaLogiciel, @wizardness, @eska-gmbh, @geodata-no, @jslachta.
Thanks 💜
2.100.0-preview
Experimental: Route GitHub API traffic through a custom host
Organizations can now route a GitHub host's API traffic through a gateway using the new per-host api_host configuration:
# Route API traffic for github.com through a gateway
gh config set api_host gh-gateway.example.com --host github.com
# Read the configured API host
gh config get api_host --host github.comThe original host remains in use for authentication, Git remotes, and browser URLs.
Note
api_host is experimental and is not a security boundary. Requests may still reach the original host.
What's Changed
✨ Features
- Honor per-host
api_hostrouting across GitHub API requests by @williammartin in #14104 - Expose
api_hostthroughgh config getandgh config setby @williammartin in #14332 - Add
webhookas an official extension by @williammartin in #14326 - Print full command help after command misuse when
ghis invoked by a coding agent by @niik in #14198
🐛 Fixes
- fix(api): disable telemetry for unauthenticated GHES requests using absolute hostnames by @williammartin in #14337
📚 Docs & Chores
- Fix discussion acceptance test flags by @williammartin in #14321
- Clarify supported GHES versions by @williammartin in #14324
- Improve automated issue triage analysis by @sergiou87 in #14318
- Record attachment counts in telemetry by @BagToad in #14327
Dependencies
- chore(deps): bump
golang.org/x/cryptofrom 0.55.0 to 0.56.0 by @babakks in #14331 - chore(deps): bump Go toolchain from 1.26.7 to 1.26.8 by @babakks in #14330
- chore(deps): bump
github.com/cli/go-gh/v2from 2.15.0 to 2.16.0 by @williammartin in #14338
Full Changelog: cli/cli@v2.99.0...v2.100.0