attestation command set integration tests separately by @malancas in https://github.com/cli/cli/pull/9035attestation verify source repository check bug by @malancas in https://github.com/cli/cli/pull/9053Full Changelog: https://github.com/cli/cli/compare/v2.49.0...v2.49.1
v2.49.0 release introduces the attestation command set for downloading and verifying attestations about artifacts built in GitHub Actions! This is part of the larger Artifact Attestations initiative. An artifact attestation is a piece of cryptographically signed metadata that is generated as part of your artifact build process. These attestations bind artifacts to the details of the workflow run that produced them, and allow you to guarantee the integrity and provenance of any artifact built in GitHub Actions.
# Verify a local artifact
gh attestation verify artifact.bin -o <your org>
# Verify a local artifact against a local artifact attestation
gh attestation verify artifact.bin -b ./artifact-v0.0.1-bundle.json -o <your org>
# Verify an OCI image
gh attestation verify oci://ghcr.io/foo/bar:latest -o <your org>
# Download artifact attestations
gh attestation download artifact.bin -o <your org>
To get started, check out gh help attestation. You can also use the gh at <command> alias for short.
sigstore-go dependency to v0.3.0 by @malancas in https://github.com/cli/cli/pull/8977gh attestation tuf-root-verify offline test fix by @malancas in https://github.com/cli/cli/pull/8975gh attestation verify output by @malancas in https://github.com/cli/cli/pull/8991Hidden flag from gh attestation command by @malancas in https://github.com/cli/cli/pull/8998gh secret set by @NeroBlackstone in https://github.com/cli/cli/pull/9004gh attestation verify by @steiza in https://github.com/cli/cli/pull/8997projectsV2 to JSON fields of gh repo commands by @babakks in https://github.com/cli/cli/pull/9007gh repo clone by @babakks in https://github.com/cli/cli/pull/9008Full Changelog: https://github.com/cli/cli/compare/v2.48.0...v2.49.0
--slurping JSON responses in gh api by @heaths in https://github.com/cli/cli/pull/8620--skip-ssh-key option to gh auth login command by @babakks in https://github.com/cli/cli/pull/8935numSelectedRepos to JSON output of gh secret list by @babakks in https://github.com/cli/cli/pull/8899gh api nested array by @Ebonsignori in https://github.com/cli/cli/pull/8762gh repo rename by @babakks in https://github.com/cli/cli/pull/8906gh pr lock/unlock not working when URL is passed by @t4kamura in https://github.com/cli/cli/pull/8837go.mod by @matthewhughes934 in https://github.com/cli/cli/pull/8958go directive in go.mod by @matthewhughes934 in https://github.com/cli/cli/pull/8956attestation command set by @malancas in https://github.com/cli/cli/pull/8919attestation cmd offline unit test failure by @malancas in https://github.com/cli/cli/pull/8933attestation command for more predicate types. by @steiza in https://github.com/cli/cli/pull/8949Full Changelog: https://github.com/cli/cli/compare/v2.47.0...v2.48.0
gh repo rename by @satoqz in https://github.com/cli/cli/pull/8888Full Changelog: https://github.com/cli/cli/compare/v2.46.0...v2.47.0
project item-list output by @yasunori0418 in https://github.com/cli/cli/pull/8754--dry-run option for pr create by @v1v in https://github.com/cli/cli/pull/8376codespaces code comments by @cuinix in https://github.com/cli/cli/pull/8795-u, --user option for gh auth token by @gregsmi in https://github.com/cli/cli/pull/8797release upload by @malor in https://github.com/cli/cli/pull/8834auth status to list all authenticated accounts by @jsoref in https://github.com/cli/cli/pull/8838Full Changelog: https://github.com/cli/cli/compare/v2.45.0...v2.46.0
pr create by @williammartin in https://github.com/cli/cli/pull/8768ref option to gh cache list by @toshimaru in https://github.com/cli/cli/pull/8711project view --web with TTY by @harveysanders in https://github.com/cli/cli/pull/8773Full Changelog: https://github.com/cli/cli/compare/v2.44.1...v2.45.0
Full Changelog: https://github.com/cli/cli/compare/v2.44.0...v2.44.1
gh cache list by @toshimaru in https://github.com/cli/cli/pull/8667Full Changelog: https://github.com/cli/cli/compare/v2.43.1...v2.44.0
Full Changelog: https://github.com/cli/cli/compare/v2.43.0...v2.43.1
With this release, the GitHub CLI team sees @samcoe off to new adventures beyond GitHub! 😿 Sam has been an amazing maintainer and colleague who has helped so many people adopt gh while trying to connect with the community regarding its needs. There will forever be a Sam-shaped hole no one can fill but hope he continues to be a part wherever his whirlwind journey takes him! ❤️
--json export flag for release list by @v1v in https://github.com/cli/cli/pull/8474pr view. by @octo in https://github.com/cli/cli/pull/8566Full Changelog: https://github.com/cli/cli/compare/v2.42.1...v2.43.0
else to fix token permissions by @dmgardiner25 in https://github.com/cli/cli/pull/8569Full Changelog: https://github.com/cli/cli/compare/v2.42.0...v2.42.1
gh-config docs by @muzimuzhi in https://github.com/cli/cli/pull/8479Full Changelog: https://github.com/cli/cli/compare/v2.41.0...v2.42.0
As you can see from the notes below, this release contains some quality of life improvements as well as a move to Azure Code Signing for Windows .exe and .msi release artifacts. This change was extensively tested prior to the holidays before our previous signing certificate expired, however the CLI team is being attentive to issues or discussions raised by our Windows community if any problems or concerns arise. 🙇 ❤️
gh run view --log by @benebsiny in https://github.com/cli/cli/pull/8459Full Changelog: https://github.com/cli/cli/compare/v2.40.1...v2.41.0
Full Changelog: https://github.com/cli/cli/compare/v2.40.0...v2.40.1
With the v2.40.0 release, multi-account support is introduced to gh for GitHub.com and GitHub Enterprise and it is only the beginning!
Thanks to @gabe565 for his efforts to support multi-account capabilities with gh-profile extension for this long requested feature! ❤️
This release focuses on several specific use cases:
gh auth logingh and git use with gh auth switchgh auth statusgh auth logoutFuture enhancements such as automatic account switching based on context and more git automatic git configuration will be planned based on community feedback.
For much more detail about the specific of multiple account support in this release as well as a discussion of the sharp edges, please see this doc.
Please provide feedback in our release discussion.
auth status when there are connection issues by @tal66 in https://github.com/cli/cli/pull/8337run list results by commit sha by @nelsonchen304 in https://github.com/cli/cli/pull/8350pr merge output when running interactively by @ffalor in https://github.com/cli/cli/pull/8381Full Changelog: https://github.com/cli/cli/compare/v2.39.2...v2.40.0
<hr /><em>This discussion was created from the release <a href='https://github.com/cli/cli/releases/tag/v2.40.0'>GitHub CLI 2.40.0</a>.</em>gh repo sync should be able to sync a local branch with an upstream remote by @benebsiny in https://github.com/cli/cli/pull/8229Full Changelog: https://github.com/cli/cli/compare/v2.39.1...v2.39.2
Full Changelog: https://github.com/cli/cli/compare/v2.39.0...v2.39.1
release create: Fix --latest flag behavior when creating release wth assets by @arunsathiya in https://github.com/cli/cli/pull/8207issue/pr: Include project item status when exporting issues and pull requests by @mattruggio in https://github.com/cli/cli/pull/8202codespace: Resolve race condition in codespaces connection by @dmgardiner25 in https://github.com/cli/cli/pull/8275release download: Improve usage documentation by @muzimuzhi in https://github.com/cli/cli/pull/8294run view: Simplify annotation fetch error handling by @williammartin in https://github.com/cli/cli/pull/8301api: Set default Accept header when one is not specified by @samcoe in https://github.com/cli/cli/pull/8303Full Changelog: https://github.com/cli/cli/compare/v2.38.0...v2.39.0
extension install no longer errors unhelpfully if the extension is already installed by @Delta456 in https://github.com/cli/cli/pull/8211project commands have a clearer error message when no owner can be resolved by @ffalor in https://github.com/cli/cli/pull/8235workflow run now presents a select for choice workflow input types by @adarshjhaa100 in https://github.com/cli/cli/pull/8180codespace create no longer polls for additional codespace permissions unnecessarily by @dmgardiner25 in https://github.com/cli/cli/pull/8267go install now works with the removal of our crypto fork by @samcoe in https://github.com/cli/cli/pull/8204go-gh by @samcoe in https://github.com/cli/cli/pull/8244Full Changelog: https://github.com/cli/cli/compare/v2.37.0...v2.38.0
project: Remove template field from --format=json output by @samcoe in https://github.com/cli/cli/pull/8160
template field when outputing projects to JSON, unfortunately
we forgot to take into account our GHES users. This field does not exist on GHES 3.8 and older.
Including this field in our queries and output broke nearly all the project commands for users
targeting these older versions of GHES. As we try our hardest to keep gh compatible with all
non-deprecated GHES versions this was a pretty big mistake. In order to fix it we are reverting
the querying and exporting of the template field for project commands. We apologize for the
inconvenience this may cause, and plan to bring back this field once GHES 3.8 gets deprecated.repo create: Allow --disable-issues and --template flags to be used together by @utouto97 in https://github.com/cli/cli/pull/7918repo create: Allow --homepage and --template flag to be used together by @arunsathiya in https://github.com/cli/cli/pull/8188repo create: Allow creating repositories from templates in interactive mode by @JunNishimura in https://github.com/cli/cli/pull/7769repo fork: Set default repo when forking repo by @kbailey4444 in https://github.com/cli/cli/pull/7768codespace: Migrate all Codespaces operations from Live Share to Dev Tunnels by @dmgardiner25 in https://github.com/cli/cli/pull/8149codespace create: Poll permission acceptance endpoint on codespace creation by @dmgardiner25 in https://github.com/cli/cli/pull/8179pr create: Remove duplicates targets for push survey by @benebsiny in https://github.com/cli/cli/pull/8184pr create: Fix typo in documentation by @darthwalsh in https://github.com/cli/cli/pull/8115browse: Do not use relative paths when --repo flag is used by @benebsiny in https://github.com/cli/cli/pull/8141dependencies: Update to fix security vulnerability by @samcoe in https://github.com/cli/cli/pull/8176dependencies: bump github.com/gabriel-vasile/mimetype from 1.4.2 to 1.4.3 by @dependabot in https://github.com/cli/cli/pull/8185Full Changelog: https://github.com/cli/cli/compare/v2.36.0...v2.37.0