Skip to content

X-GH-002: the GitHub CLI is not logged in

Generated from ops/errors/catalog.yaml by ops/ci/check-error-catalog.py --write; do not edit here. X-GH-002 is an error of gh that goat and goatbuilder carry and interpret. The same text offline: goat explain X-GH-002 or goatbuilder explain X-GH-002.

What it means

gh has no token for github.com in this environment.

Why it happens

  • a fresh machine
  • GH_TOKEN set to an expired token

What to do

One line per step or alternative:

gh auth login

Read more