Hub: github.com username: github.com password for (never stored): Requires authentication

Created on 28 Jun 2020  路  2Comments  路  Source: github/hub

Command attempted:

git tag | xargs hub release delete

What happened:

github.com username: github.com password for  (never stored): Requires authentication

More info:

[env] macOS Catalina 10.15.3
[git version] 2.26.2
[hub version] 2.14.2 
bug

All 2 comments

Well, I don't know how to fix it (maybe use the environment variables for user/pass?), but this happens because hub reads those values from standard in, which has been taken over by the pipeline--nothing to read, or at least not the right things.

@iiinsomnia I'm sorry for the bad experience! The explanation by @benknoble is accurate; hub was not authenticated yet and wasn't able to prompt because stdin wasn't connected to a terminal.

As a workaround, first run hub release to authenticate hub and then you can run any other hub commands. Alternatively, you may supply an authentication token via the GITHUB_TOKEN environment variable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aryan9600 picture aryan9600  路  3Comments

DennisSchiefer picture DennisSchiefer  路  4Comments

segevfiner picture segevfiner  路  4Comments

technosophos picture technosophos  路  3Comments

xxmyjk picture xxmyjk  路  4Comments