Affected by GO-2024-3269
and 3 other vulnerabilities
GO-2024-3269: Connecting to a malicious Codespaces via GH CLI could allow command execution on the user's computer in github.com/cli/cli
GO-2024-3296: Recursive repository cloning can leak authentication tokens to non-GitHub submodule hosts in github.com/cli/cli
GO-2024-3310: Downloading malicious GitHub Actions workflow artifact results in path traversal vulnerability in github.com/cli/cli
GO-2025-3467: `gh attestation verify` returns incorrect exit code during verification if no attestations are present in github.com/cli/cli

The highest tagged major version is
v2.
package
Version:
v1.6.0
Opens a new window with list of versions in this module.
Published: Feb 17, 2021
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
TODO there is a parallel implementation for non-isolated commands
FullName serializes a GitHub repository into an "OWNER/REPO" string
IsSame compares two GitHub repositories
Interface describes an object that represents a GitHub repository
FromFullName extracts the GitHub repository information from the following
formats: "OWNER/REPO", "HOST/OWNER/REPO", and a full URL.
FromURL extracts the GitHub repository information from a git remote URL
New instantiates a GitHub repository from owner and name arguments
NewWithHost is like New with an explicit host name
Source Files
¶
Click to show internal directories.
Click to hide internal directories.