Fails on "Invalid username or password" for git push permissions
See original GitHub issueHi,
Seeing an error about semantic-release not able to push to github, even though the build has a GITHUB_TOKEN env var.
[semantic-release] › ✖ The command "git push --dry-run https://[secure]@www.github.com/lirantal/opn-shell.git HEAD:master" failed with the error message remote: Invalid username or password.
fatal: Authentication failed for 'https://github.com/lirantal/opn-shell.git/'
Travis build: https://travis-ci.org/lirantal/opn-shell/jobs/483803564
What should I be looking into?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
GitHub: invalid username or password - Stack Overflow
Run Below command, and after than on every push and pull it will ask you to enter the username and password. · Control...
Read more >fix github error : username or email or password is invalid ...
I faced this error after I changed the github account password, and I wanted to push some changes to github via git push....
Read more >Git remote: invalid username or password Solution
The “remote: invalid username or password” error informs you that you have incorrectly authenticated to a Git server. To solve this error, make ......
Read more >remote: Invalid username or password. Git Push. - My CMS
I was prompted to insert my Github username and password, but it didn't work!! This was the error I got: $ git Push...
Read more >Why am I not prompted for password when pushing or pulling ...
Cause. The most likely reason for this is that Git has been configured to use a credential helper. The configuration could have been...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There is already a quite detailed message produced by semantic-release: https://travis-ci.org/lirantal/opn-shell/jobs/483803564#L569
I don’t think catching the specific case of additional
www
in github URL is such a good idea. If we start handling this type of configuration errors that open the door to handle an infinite number of them. Answering the many support ticket we have, I can say that people are really creative in terms of finding way to improperly configure a URL…And some people having trouble to admit they made a mistake would often answer with things like “It’s not my fault if didn’t read the doc, or read the logs, or tried to debug. It’s your software having a bad user experience”. And they would ask for adding a very specific error handling for the very specific misconfiguration they did.
Generally I would be favorable to do a lot to make a software more accessible and to reduce friction. But as semantic-release is primarily meant to be used by developers and people with at least a bit of Git experience, I don’t think we shouldn’t bend backward to handle every possible case of wrong repo URL.
We are already doing a lot in terms user feedback regarding misconfiguration:
@semantic-release/github
plugin opens an issue with all those detailed error messagesMaybe that is something we can catch with semantic-release? What do you think @pvdlg?