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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2017 06:21 AM
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
- In Studio, open the Source Control menu and select the Create Branch menu item.
- Configure the Branch. Branch Name CreateNeedItApp Create from Tag: LoadForCreateNIAppModule
- Click the Create Branch button.
- Click the Close Dialog button.
- After the branch is created, the branch name appears in the Studio status bar (bottom 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?
- Labels:
-
Studio
- 26,871 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2018 07:26 PM
I got same issue, Simply go to github.com and reset your password (in case you forgot it) then use the resettled creds in Servicenow instance. Source control>edit repository configuration and it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2018 11:14 PM
Hey! I had the same issue. Simply go on your Github account and turn of 2 factor authentication. Once you do that, it creates a branch!
(P.S. Don't forget to turn on the 2FA after creating the branch)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2019 03:44 PM
As described by @jasonstephens the steps are as follows and are preferable to disabling 2FA as this is unnecessary.
1) Log into GitHub account.
2) Browse to account settings.
3) Select Personal access tokens then Generate new token.
4) Assign name and permission for new token.
5) Generate new token (bottom of page).
6) Copy the newly generate token (this will not be viewable again so should be stored safely for future use).
7) Now the token is generated, within ServiceNow use your GitHub username with the generated token instead of your password.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2020 09:31 PM
Thank´s Scott this works for me!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2021 09:14 PM
This should me marked as correct answer.