Forrest logo
back to the gh tool

gh-secret:tldr:63f6e

gh-secret: List secret keys for the current repository.
$ gh secret list
try on your machine

The command "gh secret list" is specific to the GitHub CLI (Command Line Interface). It is used to list all the secrets stored in your GitHub repository.

GitHub Secrets allow you to securely store sensitive information, such as access tokens or API keys, that are used in your workflows or actions. They are encrypted and can only be accessed by authorized users or workflows.

When you run "gh secret list" in your command line interface while inside a GitHub repository, it will communicate with the GitHub API and retrieve a list of all the secrets that have been added to that repository. The command will display information about each secret, such as its name, when it was last updated, and its visibility status.

This command is helpful when you want to verify the secrets stored in your repository or manage the secrets associated with your workflows.

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