Update module github.com/cli/cli/v2 to v2.63.0 [SECURITY] #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v2.47.0
->v2.63.0
GitHub Vulnerability Alerts
CVE-2024-52308
Summary
A security vulnerability has been identified in GitHub CLI that could allow remote code execution (RCE) when users connect to a malicious Codespace SSH server and use the
gh codespace ssh
orgh codespace logs
commands.Details
The vulnerability stems from the way GitHub CLI handles SSH connection details when executing commands. When developers connect to remote Codespaces, they typically use a SSH server running within a devcontainer, often provided through the default devcontainer image. GitHub CLI retrieves SSH connection details, such as remote username, which is used in executing
ssh
commands forgh codespace ssh
orgh codespace logs
commands.This exploit occurs when a malicious third-party devcontainer contains a modified SSH server that injects
ssh
arguments within the SSH connection details.gh codespace ssh
andgh codespace logs
commands could execute arbitrary code on the user's workstation if the remote username contains something like-oProxyCommand="echo hacked" #
. The-oProxyCommand
flag causesssh
to execute the provided command while#
shell comment causes any otherssh
arguments to be ignored.In
2.62.0
, the remote username information is being validated before being used.Impact
Successful exploitation could lead to arbitrary code execution on the user's workstation, potentially compromising the user's data and system.
Remediation and Mitigation
gh
to2.62.0
CVE-2024-53858
Summary
A security vulnerability has been identified in the GitHub CLI that could leak authentication tokens when cloning repositories containing
git
submodules hosted outside of GitHub.com and ghe.com.Details
This vulnerability stems from several
gh
commands used to clone a repository with submodules from a non-GitHub host includinggh repo clone
,gh repo fork
,gh pr checkout
. These GitHub CLI commands invokegit
with instructions to retrieve authentication tokens using thecredential.helper
configuration variable for any host encountered.Prior to
2.63.0
, hosts other than GitHub.com and ghe.com are treated as GitHub Enterprise Server hosts and have tokens sourced from the following environment variables before falling back to host-specific tokens stored within system-specific secured storage:GITHUB_ENTERPRISE_TOKEN
GH_ENTERPRISE_TOKEN
GITHUB_TOKEN
whenCODESPACES
environment variable is setThe result being
git
sending authentication tokens when cloning submodules.In
2.63.0
, these GitHub CLI commands will limit the hosts for whichgh
acts as a credential helper to source authentication tokens. Additionally,GITHUB_TOKEN
will only be used for GitHub.com and ghe.com.Impact
Successful exploitation could lead to a third-party using leaked authentication tokens to access privileged resources.
Remediation and mitigation
gh
to2.63.0
Release Notes
cli/cli (github.com/cli/cli/v2)
v2.63.0
: GitHub CLI 2.63.0Compare Source
What's Changed
getAttestations
functions by @malancas in https://github.com/cli/cli/pull/9892baseRefOid
inpr view
by @daliusd in https://github.com/cli/cli/pull/9938heredoc
strings by @BagToad in https://github.com/cli/cli/pull/9948release create
fails due to missingworkflow
OAuth scope by @BagToad in https://github.com/cli/cli/pull/9791Full Changelog: cli/cli@v2.62.0...v2.63.0
Security
A security vulnerability has been identified in the GitHub CLI that could leak authentication tokens when cloning repositories containing git submodules hosted outside of GitHub.com and ghe.com.
For more information, see GHSA-jwcm-9g39-pmcw
New Contributors
v2.62.0
: GitHub CLI 2.62.0Compare Source
What's Changed
Full Changelog: cli/cli@v2.61.0...v2.62.0
Security
A security vulnerability has been identified in GitHub CLI that could allow remote code execution (RCE) when users connect to a malicious Codespace SSH server and use the
gh codespace ssh
orgh codespace logs
commands.For more information, see GHSA-p2h2-3vg9-4p87
GitHub CLI notifies users about latest extension upgrades
Similar to the notification of latest
gh
releases, thev2.62.0
version of GitHub CLI will notify users about latest extension upgrades when the extension is used:Why does this matter?
This removes a common pain point of extension authors as they have had to reverse engineer and implement a similar mechanism within their extensions directly.
With this quality of life improvement, there are 2 big benefits:
What do you need to do?
Extension authors should review their extensions and consider removing any custom logic previously implemented to notify users of new releases.
v2.61.0
: GitHub CLI 2.61.0Compare Source
Ensure users understand consequences before making repository visibility changes
In
v2.61.0
,gh repo edit
command has been enhanced to inform users about consequences of changing visibility and ensure users are intentional before making irreversible changes:gh repo edit
visibility change requires confirmation when changing frompublic
,private
, orinternal
gh repo edit --visibility
change requires new--accept-visibility-change-consequences
flag to confirmgh repo edit
experienceWhat's Changed
project
command by @jtmcg in https://github.com/cli/cli/pull/9816gh ruleset
by @andyfeller in https://github.com/cli/cli/pull/9815gh repo edit
by @andyfeller in https://github.com/cli/cli/pull/9845gh attestation verify
by @malancas in https://github.com/cli/cli/pull/9838gh attestation verify
should only verify provenance attestations by default by @malancas in https://github.com/cli/cli/pull/9825dnf5
commands as default by @its-miroma in https://github.com/cli/cli/pull/9844gh attestation verify
policy enforcement refactor by @malancas in https://github.com/cli/cli/pull/9848gh attestation verify
by @malancas in https://github.com/cli/cli/pull/9877gh cache list
when--json
is provided by @williammartin in https://github.com/cli/cli/pull/9883gh pr create -w
ignore template flag by @nilvng in https://github.com/cli/cli/pull/9863New Contributors
Full Changelog: cli/cli@v2.60.1...v2.61.0
v2.60.1
: GitHub CLI 2.60.1Compare Source
This is a small patch release to fix installing
gh
viago install
which was broken with v2.60.0.What's Changed
Full Changelog: cli/cli@v2.60.0...v2.60.1
v2.60.0
: GitHub CLI 2.60.0Compare Source
What's Changed
LiveSigstoreVerifier.Verify
should error if no attestations are present by @phillmv in https://github.com/cli/cli/pull/9742gh at verify
retries fetching attestations if it receives a 5xx by @phillmv in https://github.com/cli/cli/pull/9797working-with-us.md
by @BagToad in https://github.com/cli/cli/pull/9800gh
is supported on GitHub Enterprise Cloud by @BagToad in https://github.com/cli/cli/pull/9805Acceptance Test Changes
workflow
,run
, andcache
commands by @BagToad in https://github.com/cli/cli/pull/9766api
acceptance tests by @BagToad in https://github.com/cli/cli/pull/9770release
commands by @BagToad in https://github.com/cli/cli/pull/9771org
andssh-key
commands by @BagToad in https://github.com/cli/cli/pull/9812gh auth
commands by @jtmcg in https://github.com/cli/cli/pull/9787repo
commands by @jtmcg in https://github.com/cli/cli/pull/9783search
command by @BagToad in https://github.com/cli/cli/pull/9786variable
commands by @andyfeller in https://github.com/cli/cli/pull/978secret
commands by @andyfeller in https://github.com/cli/cli/pull/9782New Contributors
Full Changelog: cli/cli@v2.59.0...v2.60.0
v2.59.0
: GitHub CLI 2.59.0Compare Source
What's Changed
SECURITY.md
with expectations for privately reported vulnerabilities by @BagToad in https://github.com/cli/cli/pull/9687darwin-amd64
binary on an Apple Silicon macOS device by @timrogers in https://github.com/cli/cli/pull/9650repo license list/view
andrepo gitignore list/view
by @BagToad in https://github.com/cli/cli/pull/9721GH_ACCEPTANCE_SCRIPT
env var to target a single script by @williammartin in https://github.com/cli/cli/pull/9756issue
command by @williammartin in https://github.com/cli/cli/pull/9757gist list
by @heaths in https://github.com/cli/cli/pull/9728New Contributors
Full Changelog: cli/cli@v2.58.0...v2.59.0
v2.58.0
: GitHub CLI 2.58.0Compare Source
What's Changed
attestation verify
custom issuer mismatch error by @bdehamer in https://github.com/cli/cli/pull/9616attestation trusted-root
command by @BagToad in https://github.com/cli/cli/pull/9635attestation trusted-root
command by @bdehamer in https://github.com/cli/cli/pull/9610trusted-root
command by @bdehamer in https://github.com/cli/cli/pull/9638dnf5
instructions todocs/install_linux.md
by @its-miroma in https://github.com/cli/cli/pull/9660New Contributors
Full Changelog: cli/cli@v2.57.0...v2.58.0
v2.57.0
: GitHub CLI 2.57.0Compare Source
What's Changed
--active
flag to thegh auth status
command by @velumuruganr in https://github.com/cli/cli/pull/9520gh attestation verify
test for custom OIDC issuers by @bdehamer in https://github.com/cli/cli/pull/9595darwin-arm64
binary, but adarwin-amd64
binary is available by @timrogers in https://github.com/cli/cli/pull/9599gh attestation verify
bundle parsing and validation errors by @malancas in https://github.com/cli/cli/pull/9564attestation verify
output when no TTY present by @bdehamer in https://github.com/cli/cli/pull/9612New Contributors
Full Changelog: cli/cli@v2.56.0...v2.57.0
v2.56.0
: GitHub CLI 2.56.0Compare Source
Important note about renewed GPG key
The Debian and RedHat releases have been signed with a new GPG key. If you are experiencing issues updating your
.deb
or.rpm
packages, please read cli/cli#9569.What's Changed
gh repo sync
stdout by @muzimuzhi in https://github.com/cli/cli/pull/9491Internal
fromgh repo create
prompt when owner is not an org by @jtmcg in https://github.com/cli/cli/pull/9465gh run view
by @benebsiny in https://github.com/cli/cli/pull/9482repo sync
by @muzimuzhi in https://github.com/cli/cli/pull/9509gh attestation verify
handles empty JSONL files by @malancas in https://github.com/cli/cli/pull/9541New Contributors
Full Changelog: cli/cli@v2.55.0...v2.56.0
v2.55.0
: GitHub CLI 2.55.0Compare Source
What's Changed
gh variable get
to use repo host by @andyfeller in https://github.com/cli/cli/pull/9411gh repo set-default
by @thecaffeinedev in https://github.com/cli/cli/pull/9431gh run download
downloads the latest artifact by default by @sato11 in https://github.com/cli/cli/pull/9412--project.*
flags'name
withtitle
in docs by @jtmcg in https://github.com/cli/cli/pull/9443gh release create --notes-from-tag
behavior with multiline tag annotation by @babakks in https://github.com/cli/cli/pull/9385pr create --editor
by @benebsiny in https://github.com/cli/cli/pull/9433gh attestation
by @codysoyland in https://github.com/cli/cli/pull/9442cli/gh-extension-precompile
by @BagToad in https://github.com/cli/cli/pull/9462working-with-us.md
by @BagToad in https://github.com/cli/cli/pull/9468gh issue develop -b does-not-exist-on-remote
by @benebsiny in https://github.com/cli/cli/pull/9477--project <number>
flags ingh search
toowner/number
by @jtmcg in https://github.com/cli/cli/pull/9453New Contributors
Full Changelog: cli/cli@v2.54.0...v2.55.0
v2.54.0
: GitHub CLI 2.54.0Compare Source
What's Changed
--bare
clone targets by @hyperrealist in https://github.com/cli/cli/pull/9271--remove-milestone
option toissue edit
andpr edit
by @babakks in https://github.com/cli/cli/pull/9344New Contributors
Full Changelog: cli/cli@v2.53.0...v2.54.0
v2.53.0
: GitHub CLI 2.53.0Compare Source
What's Changed
--json
option tovariable get
command by @babakks in https://github.com/cli/cli/pull/9128gh repo create
to clarify owner by @jessehouwing in https://github.com/cli/cli/pull/9309gh pr view --json stateReason
by @williammartin in https://github.com/cli/cli/pull/9307issue create --editor
by @notomo in https://github.com/cli/cli/pull/7193pr update-branch
command by @babakks in https://github.com/cli/cli/pull/8953New Contributors
Full Changelog: cli/cli@v2.52.0...v2.53.0
v2.52.0
: GitHub CLI 2.52.0Compare Source
What's Changed
-a
flag togh run list
by @joshuajtward in https://github.com/cli/cli/pull/9162gh at verify
public beta note by @phillmv in https://github.com/cli/cli/pull/9243New Contributors
Full Changelog: cli/cli@v2.51.0...v2.52.0
v2.51.0
: GitHub CLI 2.51.0Compare Source
What's Changed
signer-repo
andsigner-workflow
flags togh attestation verify
by @malancas in https://github.com/cli/cli/pull/9137--json-result
flag with--format=json
in the attestation cmd by @phillmv in https://github.com/cli/cli/pull/9172New Contributors
Full Changelog: cli/cli@v2.50.0...v2.51.0
v2.50.0
: GitHub CLI 2.50.0Compare Source
What's Changed
gh pr checks
by @nobe4 in https://github.com/cli/cli/pull/9079gh pr view
by @nobe4 in https://github.com/cli/cli/pull/9080Attempts
field toAttempt
; expose ingh run view
andgh run ls
by @cawfeecake in https://github.com/cli/cli/pull/8905gh variable get FOO
command by @arnested in https://github.com/cli/cli/pull/9106gh attestation verify
shared workflow use case by @malancas in https://github.com/cli/cli/pull/9107New Contributors
Full Changelog: cli/cli@v2.49.2...v2.50.0
v2.49.2
: GitHub CLI 2.49.2Compare Source
What's Changed
run list
doc with available--json
fields by @babakks in https://github.com/cli/cli/pull/8934Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.