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

Can't link app to repo Github

kevin renault
Tera Contributor

Hi,

I'm new to Servicenow, and i'm trying to link an app to a repo Github.
I have this message : "Repository authentication failed, check credentials. Make sure the user has both read and write access".

As shown in screenshots, I created my Credential towards Github, with a valid token.

I'm wondering a few things :
    - is it normal than the password in the field, after updating credential, is shorter than the token length ?
    - is the user name important when using a token ?


I specify than two factor authentication is not enabled in my Github account.

I also tried with "normal" authentication (user name and password), doesn't work neither.

I, please, really need help on this.

 

 

 

 

1 ACCEPTED SOLUTION
10 REPLIES 10

Gary Fawcett1
Tera Guru

Hi,

I had the same issue last week, and I wasn't using "Personal access tokens".

You need to use your normal logon, but use the password from your Token.

Thanks...Gary

 

Hi Gary, thanks for answering.

 

I'm not sure to understand what you mean.
You used you're Github user id and put the token in the password ?
If so, I tried with all possible user_ids (name in the url, full name, name in others Git -config...), still doesn't work... 😟.

Miguel Donayre
ServiceNow Employee
ServiceNow Employee

Here is a guide on ServiceNow Developer site to set up the integration with Source Control 

https://developer.servicenow.com/dev.do#!/learn/courses/tokyo/app_store_learnv2_devenvironment_tokyo...