Closed kingces95 closed 2 years ago
sudo gh extension install github/gh-net
Can you try installing the extension without sudo
? I think you'll only need sudo
when launching gh-net
Dropping the sudo works. Might wanna update the instructions.
gh extension install github/gh-net
@kingces95 the issue is that the GitHub CLI authentication happens for the current user, and because we have to use sudo for the extension, you have to auth with sudo too:
gh auth status -t
-> copy the current auth token.echo {TOKEN} | sudo auth login --with-token
sudo gh extension install github/gh-net
The related issue on the GitHub CLI side: https://github.com/cli/cli/issues/5456
When I follow the gh-net setup instructions I am asked to authenticate, I do, but then I'm told I'm still unauthenticated. What am I doing wrong?
Indeed,
gh
appears to think I am logged in.Let's try logout then log back in.
I expect if the command says validation failed that I wouldn't be logged in. Actually, if I run status I see I am logged in.
Regardless, I still cannot install the extension
Let's try delete the ssh key locally and in github and try the flow again.
I see that a new key was upload to github. Cool! But I still get the same error trying to install the extension.
I'm running ubuntu on WSL2 on a DevBox.