The CreatorCon Call for Content is officially open! Get started here.

Repository authentication failed, check credentials. Make sure the user has both read and write acce

Guns
Tera Contributor

I'm performing the exercise Exercise: Create the Wish List Application and Exercise: Create and Link a Repository.

I performed all the steps mentioned in the exercise but i'm getting error after clicking on Link to Source Control "Repository authentication failed, check credentials. Make sure the user has both read and write access"

created public git repository.

Could you please suggest?

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Screen shot

Guns_0-1737996104675.png

 

 

 

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @Guns 

 

This is happening as creds are not proper. I guess you are entering username of github account and direct password used to login. 

 

First get 2FA enabled for your account by following instructions over here - Configuring two-factor authentication - GitHub Docs   You can choose any method which suits you, I think I had doing using text messages.

 

Now you need to create personal access token as mentioned in link, I had done using fine-grained type and in permissions select almost read-write option. Managing your personal access tokens - GitHub Docs

 

Once above step is done copy the code generated and come back to ServiceNow studio and basic auth credentials. Once done go back to studio and select source control menu and open link to source control then enter details and select credentials we created and click on "Link to source control" button. Then you will be good with step which is blocker for you right now.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

4 REPLIES 4

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @Guns 

 

This is happening as creds are not proper. I guess you are entering username of github account and direct password used to login. 

 

First get 2FA enabled for your account by following instructions over here - Configuring two-factor authentication - GitHub Docs   You can choose any method which suits you, I think I had doing using text messages.

 

Now you need to create personal access token as mentioned in link, I had done using fine-grained type and in permissions select almost read-write option. Managing your personal access tokens - GitHub Docs

 

Once above step is done copy the code generated and come back to ServiceNow studio and basic auth credentials. Once done go back to studio and select source control menu and open link to source control then enter details and select credentials we created and click on "Link to source control" button. Then you will be good with step which is blocker for you right now.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Thanks for your suggestion.

can we configure without 2FA? 

@Guns  - You can give a try but going with 2FA is helpful to secure the account.

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Thanks @Viraj Hudlikar for your help.