Why do I keep getting a "Repository authentication failed, check credentials. Make sure the user has both read and write access" error message when I create a branch in studio signed in as system admin?

5vetlana
Tera Contributor

I am working on the NeedIt tutorial in the New to Service Now trainings.   Although I was able to do the previous steps I am unable to create a branch in the studio.   The instructions say:

Create a Branch from a Tag

  1. In Studio, open the Source Control menu and select the Create Branch menu item.
  2. Configure the Branch.               Branch Name CreateNeedItApp               Create from Tag: LoadForCreateNIAppModule
  3. Click the Create Branch button.
  4. Click the Close Dialog button.
  5. After the branch is created, the branch name appears in the Studio status bar (bottom right corner).The branch name appears in the status bar on the lower right corner

When I try to run this in studio it fails with the error message "Repository authentication failed, check credentials. Make sure the user has both read and write access'   I have tried to sign in as various users that have read and write access but can't get it to work.   Can anyone tell me what I'm doing wrong?

71 REPLIES 71

This works today in "Rome" wiht MFA active.

Omkar Vaidya
Tera Contributor

Hi,

I am getting the same error when I am trying to commit changes.

I have generated an access token and reset the GitHub password as well but with no luck.

Please suggest

me too. SNOW version is Rome

Tim Woodruff
Mega Guru

I recently wrote a 'ServiceNow Pro Tips' article on this, which teaches you:

 

1. How to change which GitHub / repository your ServiceNow application in Studio

2. How to update your GitHub repo credentials in ServiceNow

3. How to generate ECDSA SSH keys and link your ServiceNow application with GitHub using SSH (including the new GitHub rule against using insecure RSA keys) - since GitHub no longer supports basic auth or RSA SSH keys

4. How to generate/link your SSH API key-pair with GitHub and ServiceNow, using your public/private keys

 

You can see the full article with detailed step-by-step instructions, here:

https://snprotips.com/blog/2022/3/4/how-to-change-servicenow-applications-repositoryurl

Link's broken Tim!