Wednesday 28 July 2021

How to add a Github personnel token on Mac OS Big Sur

 So when pushing to Github I've all of a sudden started to receive the following issue. 

remote: Password authentication is temporarily disabled as part of a brownout. Please use a personal access token instead.

remote: Please see https://github.blog/2020-07-30-token-authentication-requirements-for-api-and-git-operations/ for more information.

fatal: unable to access 'https://github.com/flowmoco/siaf.git/': The requested URL returned error: 403


The first thing you'll need to do is set up Personal Access Token in Github.  Following the instructions here to do that.   Add a Personal Access Token to Github

After that I have read that you can then open 'Keychain Access' and search for github. 


Next you should be able to right click that and delete it.   

Then you'll be able to 'git push' and you'll be asked for your Username and Token Access. 

However deleting the keychain for me didn't work.   If the same happens for you then this worked for me.  

Double click on the 'github.com' in the Name column. 

From here you can change the 'Kind' to 'access token' and the Password to the Keychain password that you've been given. 





Now when you go back to 'git push' it'll work :)

No comments: