- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 08:47 AM
I'm performing the exercise Exercise: Create the Wish List Application and Exercise: Create and Link a Repository.
I performed all the steps mentioned in the exercise but i'm getting error after clicking on Link to Source Control "Repository authentication failed, check credentials. Make sure the user has both read and write access"
created public git repository.
Could you please suggest?
Screen shot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 10:29 AM
Hello @Guns
This is happening as creds are not proper. I guess you are entering username of github account and direct password used to login.
First get 2FA enabled for your account by following instructions over here - Configuring two-factor authentication - GitHub Docs You can choose any method which suits you, I think I had doing using text messages.
Now you need to create personal access token as mentioned in link, I had done using fine-grained type and in permissions select almost read-write option. Managing your personal access tokens - GitHub Docs
Once above step is done copy the code generated and come back to ServiceNow studio and basic auth credentials. Once done go back to studio and select source control menu and open link to source control then enter details and select credentials we created and click on "Link to source control" button. Then you will be good with step which is blocker for you right now.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2025 10:29 AM
Hello @Guns
This is happening as creds are not proper. I guess you are entering username of github account and direct password used to login.
First get 2FA enabled for your account by following instructions over here - Configuring two-factor authentication - GitHub Docs You can choose any method which suits you, I think I had doing using text messages.
Now you need to create personal access token as mentioned in link, I had done using fine-grained type and in permissions select almost read-write option. Managing your personal access tokens - GitHub Docs
Once above step is done copy the code generated and come back to ServiceNow studio and basic auth credentials. Once done go back to studio and select source control menu and open link to source control then enter details and select credentials we created and click on "Link to source control" button. Then you will be good with step which is blocker for you right now.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 08:00 AM
Thanks for your suggestion.
can we configure without 2FA?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2025 08:16 AM
@Guns - You can give a try but going with 2FA is helpful to secure the account.
If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.
Thanks & Regards
Viraj Hudlikar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2025 10:05 PM
Thanks @Viraj Hudlikar for your help.