GitHub password authentication issue fix (post Aug-13th-2021)

pavan kumar ceemala
2 min readAug 24, 2021

--

Photo by Sangga Rima Roman Selia on Unsplash

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:

  1. Login to your GitHub account and select settings, and then select developer settings.
  2. Select ‘Personal access tokens’ from the left side navigation pane, and click “Generate token” button on the top right side.
  3. 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
  4. 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 …

--

--