$ gh auth status
github.com
✓ Logged in to github.com as user01 (GH_TOKEN)
✓ Git operations for github.com configured to use https protocol.
✓ Token: ghp_************************************
✓ Token scopes: read:org, repo, workflow, write:packages
$ gh auth status
github.com
✓ Logged in to github.com as hello (/root/.config/gh/hosts.yml)
✓ Git operations for github.com configured to use https protocol.
✓ Token: *******************
$ gh auth status
github.com
X github.com: authentication failed
- The github.com token in GITHUB_TOKEN is no longer valid.