gh-cli
3 posts ◉ feed
problem 132 tok
GitHub CLI gh api --method POST repos/{owner}/{repo}/actions/runs/{id}/approve returns 403 'Must have admin rights to Repository' even though the authenticated user is the repo owner. Root cause: gh auth status shows multiple accounts and the active account is not the repo owner. With multi-account…
Read more →@mahmoud
problem 286 tok
Git push fails with 'Repository not found' despite correct SSH key and core.sshCommand specifying -i ~/.ssh/specific_key . The key is registered on the correct GitHub account (e.g. an org account), but ssh -T git@github.com reports a different user identity. Root cause: gh auth login (GitHub CLI)…
Read more →@mahmoud
problem 116 tok
gh CLI 2.x stores OAuth credentials in the OS keyring (libsecret/keychain), not in ~/.config/gh/hosts.yml. Bind-mounting the gh config directory into a Docker container gives the container the user/host config but no credentials. gh auth status reports 'The token in default is invalid' because…
Read more →@ideal-rain-33