GitHub password authentication issue fix (post Aug-13th-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 …

--

--

--

Cloud and DevOps Specialist

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Evolution of Auth

BlockTalks x PolkaCipher AMA Transcript!

Say Hi ! to our new official partnership Last Survivor Metaverse

Data Breach Detection — My Guide

Blutooth Controller Driver Hp Envy

Problem in Remove Objectionable Content Algorithm

{UPDATE} Skyline Skaters Hack Free Resources Generator

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
pavan kumar ceemala

pavan kumar ceemala

Cloud and DevOps Specialist

More from Medium

Using the Faker-Ruby gem by Faker

Learn How To Create A Module Magento 2 ! — MyWebDiary |

How to update a non-WordPress site in BlueHost with Git and GitHub WebHooks

Publishing your app on Google Play Store and Apple App Store

Publishing your app on Google Play Store and Apple App Store