Skip to content

Releases: cli/cli

GitHub CLI 2.28.0

25 Apr 13:53
32faa8e
Compare
Choose a tag to compare

What's New

  • macOS binaries are now signed and notarized

    • ⚠️ macOS archives attached to our releases are no longer .tar.gz, but .zip instead. This is because .tar.gz archives cannot be notarized.
    • The checksums.txt file attached to every release now includes the checksum of the Windows MSI installer too.
  • macOS and Windows binaries are now compiled from their respective platforms and have cgo enabled. This might help resolve respecting system proxy settings and avoid related networking issues.

  • issue edit: edit multiple issues at the same time by @heaths in #7259

  • Add gh org list by @joshkraft in #7257

  • ssh-key: add ability to manage signing keys by @kousikmitra in #7270

  • search: enable owner flag to take multiple values by @kousikmitra in #7305

  • codespace: add --web flag for list & create commands by @doaortu in #7288

  • Our Debian & RPM packages now ship with shell completion scripts by @Xerkus in #7293

  • run list: add --event and --created filters by @cawfeecake in #7363 #7352

  • repo: add visibility JSON field by @yeikel in #7337

What's Changed

New Contributors

Full Changelog: v2.27.0...v2.28.0

GitHub CLI 2.27.0

07 Apr 19:45
89caedf
Compare
Choose a tag to compare

v2.27.0

This is primarily an out of band bugfix release for codespaces users, but does include a new command gh run delete.

New Features

Bugfixes

  • Fix codespaces invoker immediately closing by @cmbrose in #7284

New Contributors

Full Changelog: v2.26.1...v2.27.0-pre0

GitHub CLI 2.26.1

04 Apr 23:23
633ca03
Compare
Choose a tag to compare

What's Changed

  • extend secure storage default to auth refresh by @vilmibm in #7278

Full Changelog: v2.26.0...v2.26.1

GitHub CLI 2.26.0

04 Apr 19:14
69573b3
Compare
Choose a tag to compare

gh 2.26.0

Important: credentials now stored securely by default

When running gh auth login, your credentials will now be stored in your operating system's credential storage instead of directly on disk. In other words, --secure-storage is now default behavior. We've added a new flag, --insecure-storage, to opt into the old insecure behavior in case you need to debug an issue with credential storage.

As before, to take advantage of credential storage, please re-run gh auth login.

For more context, you can read the v2.24.0 release notes

Ref: secure storage by default by @vilmibm in #7276

Other new features

Bugfixes

  • Make number arg, commit arg, and flags mutually exclusive by @kkocha in #7268
  • Check SSH key existence before uploading by @vaindil in #7246
  • Throw error for non-existing org / repo with non-zero status in repo list by @wingkwong in #7240

Docs and development changes

  • Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.18 by @dependabot in #7217
  • Properly handle closing files that have been writen to by @samcoe in #7199
  • Added apt update command to linux install docs. by @srgk26 in #7186
  • Revise GH_CONFIG_DIR content in help_topic.go by @wingkwong in #7230
  • Refine the Makefile file so that it can do the basic work by @cubxxw in #7228
  • Clearer message with actionable hint for repo sync by @macmacbr in #7110
  • Fix typo in README.md by @SonicGDX in #7244
  • Retry fetching repo from template by @heaths in #7080
  • Repo list: add test for invalid owner error by @mislav in #7241
  • Improve Amazon Linux install instructions by @mislav in #7252
  • Add commit SHA arg to gh browse help by @kkocha in #7267
  • Additional help doc and example for auth setup-git by @kkocha in #7243

New Contributors

Full Changelog: v2.25.1...v2.26.0-pre0

GitHub CLI 2.25.1

21 Mar 14:24
1fc98f6
Compare
Choose a tag to compare

What's Changed

  • variable: fix listing and deleting per-environment variables by @rsteube in #7207

Full Changelog: v2.25.0...v2.25.1

GitHub CLI 2.25.0

20 Mar 23:20
88cae9f
Compare
Choose a tag to compare

What's New

What's Changed

  • browse: Improve documentation and consistency of the --commit flag by @alex-petrov-vt in #7105
  • repo sync: Ensure git fetch is always authenticated by @samcoe in #7139
  • repo delete: Don't delete repos that have transfered ownership by @samcoe in #7106
  • auth: Skip searching keyring when checking for environment tokens by @benjlevesque in #7169
  • auth refresh: Improve documentation of --scopes flag behavior by @alex-petrov-vt in #7132
  • pr status: Hide "current branch" when using --repo flag by @jtpetty in #7180
  • repo archive: Change to use Prompter package by @Ruminateer in #7083
  • search: Fix multiword keyword quoting by @samcoe in #7170
  • Replace deprecated command with environment file by @jongwooo in #7195
  • New prompt testing utility by @vilmibm in #7116
  • Use transform.Transformer interface for ascii sanitization by @samcoe in #7117
  • Only replace control sequences by @samcoe in #7168
  • Tech debt cleanup for variable and secret commands by @samcoe in #7151
  • Bump actions/setup-go from 3 to 4 by @dependabot in #7177

New Contributors

Full Changelog: v2.24.3...v2.25.0

GitHub CLI 2.24.3

09 Mar 16:00
71d9e0e
Compare
Choose a tag to compare

What's Changed

  • config get: support getting oauth_token from keyring by @mislav in #7124

Full Changelog: v2.24.2...v2.24.3

GitHub CLI 2.24.2

09 Mar 14:41
b2b0a16
Compare
Choose a tag to compare

What's Changed

  • codespace ssh: fix "connection reset by peer" by @mislav in #7120

Full Changelog: v2.24.1...v2.24.2

GitHub CLI 2.24.1

09 Mar 01:27
50ddb36
Compare
Choose a tag to compare

What's Changed

  • Fix progress indicator bug with generic RunWithProgress function by @jungaretti in #6848
  • auth login: Fix retrieving current login name when pasting auth token @samcoe in #7114

Full Changelog: v2.24.0...v2.24.1

GitHub CLI 2.24.0

08 Mar 16:55
66cd902
Compare
Choose a tag to compare

What's New

Option to store gh access token in system encrypted storage

The gh auth login and gh auth refresh commands gained the new --secure-storage flag. In this mode, the access token that GitHub CLI uses for GitHub API requests will now be stored in the system keyring instead of in the plain text config file.

To migrate as an existing GitHub CLI user, re-authenticate like so:

gh auth refresh --secure-storage -h github.com

Depending on your system, you could get an interactive prompt to allow the CLI tool to access the system keyring. The systems that are supported are:

  • Keychain on macOS
  • GNOME Keyring on Linux (Secret Service dbus interface)
  • Wincred on Windows

Please note:

  • This feature is currently opt-in, but will become the default in the near future.

  • If none of the system storage providers are found, or the store operation fails, the token will be written to the config file as before.

  • Using this feature could result in Go extensions breaking if they were not updated to the latest go-gh version. If extensions you are using no longer work after migrating your token to secure token storage, please report the issue to that extension's repository.

  • Storing tokens in system keyring most likely won't work in “headless” environments.

Other additions

What's Changed

  • repo fork: retry git clone on git clone failure by @jsoref in #6962
  • repo fork: add newline after printing error about existing fork by @digitalfu in #7030
  • codespace: add --repo filter to more commands by @cmbrose in #6669
  • codespace code: always open new VS Code window by @cmbrose in #7092
  • pr diff: sanitize control characters for terminal output by @mislav in #7108
  • browse: use --commit flag to browse commit SHAs containing only digits by @yanskun in #7038
  • pr status: fix when on a detached HEAD by @alex-petrov-vt in #7082
  • auth token: respect GH_HOST if a hostname is not provided by @samcoe in #7094
  • Address Projects bugs by @samcoe in #7007
  • Properly handle C1 control sequences by @samcoe in #7079
  • Cleanup logic to retry on failure by @samcoe in #7027
  • Cleanup config.AuthToken and config.DefaultHost methods by @samcoe in #7049
  • Bump golang.org/x/net package by @samcoe in #7026
  • Bump github.com/gabriel-vasile/mimetype from 1.4.1 to 1.4.2 by @dependabot in #7107
  • Update working-with-us.md by @vilmibm in #7077

New Contributors

Full Changelog: v2.23.0...v2.24.0