mise/Config/Setting/github.credential_command
github.credential_command mise setting
- Type:
string(optional) - Scope: global config only (
~/.config/mise/config.toml). A projectmise.tomlcannot set it. - A shell command that prints a GitHub token on stdout. mise uses the token for its own GitHub API calls.
- The command receives
MISE_CREDENTIAL_HOSTandMISE_CREDENTIAL_PROVIDER. It runs once per host per mise command, with mise's shims removed fromPATH. Example for a
ghlogin kept in the macOS KeychainReach
- The token goes to mise. mise does not export it to the programs it runs, so a tool such as rulesync needs its own
GITHUB_TOKEN. See rulesync/Explanation/Rulesync authenticates to GitHub with GITHUB_TOKEN.
- The token goes to mise. mise does not export it to the programs it runs, so a tool such as rulesync needs its own
- Sibling settings:
gitlab.credential_command,forgejo.credential_command.
- Type: