How do I edit repository configuration?

yweiss
Kilo Contributor

Every time I try to create a branch in Studio this message appears: "Repository authentication failed, check credentials. Make sure the user has both read and write access". How can I fix this?

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

Hi,



Please check if the credentials you had provided were your sign in and password for repositry (e.g github) not service now.   Once you reset respository password , it should work.



Regards,


Sachin


View solution in original post

10 REPLIES 10

Thank you!!


I've done this - making sure it was my github account creditials - however, still getting this error. Just to be certain, I updated it again and recieved an alert saying "Editing the repository configuration was successful."  When I then try to create the brand again, I get the same "Repository authentication failed, check credentials. Make sure the user has both read and write access" error.

Any other ideas?

Actually, I figured out the issue...

If you change your github username, your old one will work (at least mine did) to import the forked repo. However, it will not work in regards to the authentication to make a new branch.

I was using lastpass - which had my old username. Just in case anyone else has the same frursting16 hours I did lol

Thanks 🙂

I did both steps listed above and I'm still not able to log in can someone please help 

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