Skip to content

Releases

2.104.0-preview

2.104.0-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 15 Nov 00:23

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-forks

What's Changed

✨ Features

  • Require confirmation before gh repo delete deletes private forks by @BagToad in #14858

🐛 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

:dependabot: Dependencies

  • chore(deps): bump github.com/klauspost/compress from 1.20.3 to 1.20.4 by @dependabot in #15040
  • chore(deps): bump charm.land/lipgloss/v2 from 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/sys from 0.49.0 to 0.50.0 by @dependabot in #15010
  • chore(deps): bump golang.org/x/sync from 0.24.0 to 0.25.0 by @dependabot in #14998
  • chore(deps): bump the codeql-actions group across 1 directory with 3 updates by @dependabot in #14964
  • chore(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0 by @dependabot in #14963
  • chore(deps): bump github.com/yuin/goldmark from 1.8.6 to 1.8.7 by @dependabot in #14907
  • chore(deps): bump charm.land/bubbletea/v2 from 2.1.0 to 2.1.1 by @dependabot in #14906
  • chore(deps): bump github.com/sigstore/sigstore-go from 1.3.0 to 1.4.0 by @dependabot in #14905
  • chore(deps): bump google.golang.org/grpc from 1.84.0 to 1.85.0 by @dependabot in #14878
  • chore(deps): bump the codeql-actions group with 3 updates by @dependabot in #14824

New Contributors

Full Changelog: cli/cli@v2.103.3...v2.104.0

https://github.com/cli/cli/releases/tag/v2.104.0

2.103.3-preview

2.103.3-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 01 Nov 00:26

What's Changed

🐛 Fixes

  • fix(gh auth status): explain expired expiring tokens with --no-refresh by @babakks in #14815

Full Changelog: cli/cli@v2.103.2...v2.103.3

https://github.com/cli/cli/releases/tag/v2.103.3

2.103.2-preview

2.103.2-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 25 Oct 00:35

🐛 Fixes

  • Allow server to arbitrate which GitHub App installation tokens can attach files by @martinajir in #14804
  • Defer --attach credential checks to the upload endpoint by @BagToad in #14805

New Contributors

Full Changelog: cli/cli@v2.103.1...v2.103.2

https://github.com/cli/cli/releases/tag/v2.103.2

2.103.2-preview

2.103.2-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 25 Oct 00:35

🐛 Fixes

  • Allow server to arbitrate which GitHub App installation tokens can attach files by @martinajir in #14804
  • Defer --attach credential checks to the upload endpoint by @BagToad in #14805

New Contributors

Full Changelog: cli/cli@v2.103.1...v2.103.2

https://github.com/cli/cli/releases/tag/v2.103.2

2.102.0-preview

2.102.0-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 04 Oct 01:14

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

📚 Docs & Chores

:dependabot: 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

https://github.com/cli/cli/releases/tag/v2.102.0

2.101.0-preview

2.101.0-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 20 Sep 00:38

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 disabled

Explicit clipboard options still take precedence for an individual invocation.

What's Changed

✨ Features

🐛 Fixes

📚 Docs & Chores

:dependabot: Dependencies

New Contributors

Full Changelog: cli/cli@v2.100.0...v2.101.0

https://github.com/cli/cli/releases/tag/v2.101.0

2.100.0-preview.4

2.100.0-preview.4 Pre-release
Pre-release

Choose a tag to compare

@kzu kzu released this 18 Sep 23:56

2.100.0-preview.3

2.100.0-preview.3 Pre-release
Pre-release

Choose a tag to compare

@kzu kzu released this 18 Sep 21:12

2.100.0-preview.2

Choose a tag to compare

@devlooped-bot devlooped-bot released this 14 Sep 17:45

2.100.0-preview

2.100.0-preview Pre-release
Pre-release

Choose a tag to compare

@devlooped-bot devlooped-bot released this 06 Sep 00:39

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.com

The 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

🐛 Fixes

  • fix(api): disable telemetry for unauthenticated GHES requests using absolute hostnames by @williammartin in #14337

📚 Docs & Chores

:dependabot: Dependencies

  • chore(deps): bump golang.org/x/crypto from 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/v2 from 2.15.0 to 2.16.0 by @williammartin in #14338

Full Changelog: cli/cli@v2.99.0...v2.100.0

https://github.com/cli/cli/releases/tag/v2.100.0