GitHub password authentication issue fix (post Aug-13th-2021)
2 min readAug 24, 2021
In this article I would explain how to fix the password authentication failure due to the recent GitHub authentication policy update, where GitHub has deprecated password based authentication.
Here is a sample error, when you are trying to run a checkout stage in your jenkins pipeline or you are trying to push an updated file to your GitHub repo
stderr: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: Authentication failed for 'https://github.com/myrepo/gitops.git/'
Follow these steps to fix this error:
- Login to your GitHub account and select settings, and then select developer settings.
- Select ‘Personal access tokens’ from the left side navigation pane, and click “Generate token” button on the top right side.
- In the generate token, provide a note to refer the token , expiration date, and the scope and hit generate token at the bottom, this will generate a token for your user
- Use this token, where ever password was used previously to access your Github repo.
Here is a video, with steps for your reference.
Thank you …