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

Yes, this worked for me. Using a basic auth 

  1. Configure the New personal access token.
    Note: ServiceNow access
    Expiration: I used 30 days, so that should not be an issue
    Select scopes: repo
  2. Copy your token to keep in a secure location.

 

This is important as when I changed my password to my personal token, then it worked

When configuring a Credentials record to authenticate to source control, I entered my token in the Password field instead of my GitHub password.