Forrest logo
back to the gh tool

gh-secret:tldr:15fde

gh-secret: List secret keys for a specific repository.
$ gh secret list --repo ${owner}/${repository}
try on your machine

This command is used with the GitHub CLI (Command Line Interface) and it lists the secrets in a specific GitHub repository. Here's how the different parts of the command work:

  • gh secret list: This is the main command that lists the secrets in a GitHub repository.

  • --repo: This flag specifies the repository where the secrets are located.

  • ${owner}: This is a placeholder for the GitHub username or organization that owns the repository. You need to replace ${owner} with the actual username or organization.

  • ${repository}: This is a placeholder for the name of the repository where the secrets are stored. You need to replace ${repository} with the actual repository name.

So, by running this command and substituting ${owner} and ${repository} with the appropriate values, you can retrieve a list of secrets in a particular GitHub repository.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool