Open1

GithubActionsでの疑問をメモ書きする

masaki morimasaki mori

GH_TOKEN, GITHUB_TOKEN (in order of precedence): an authentication token that will be used when a command targets either github.com or a subdomain of ghe.com. Setting this avoids being prompted to authenticate and takes precedence over previously stored credentials.

https://cli.github.com/manual/gh_help_environment

Tokenを渡す際に表記揺れしている?と思っていたがどちらも環境変数として適切。GH_TOKENのほうが優先。なぜ2つも用意しているのか……? マニュアル見るとほかにも環境変数が複数用意されていているものがある。