I am unable to integrate source control i.e., fork the repository GitHub .!

Abdur Rahman1
Giga Expert

Good evening.
I hope you are doing well.!

Question: Create an Application with a table extending Task, integrate the source control and create a branch with Application Properties and create a System property module to your applicationCreate a system property “assignment.group.priority.critical”, then use the system property to set the default value of the Assignment group as ‘Help Desk’ when the priority is ‘Critical’. Commit the changes in the source control.

Here, I am unable to integrate source control i.e., fork the GitHub repository to my ServiceNow instance. I am getting an error as "Repository authentication failed, check credentials. Make sure the user has both read and write access".
Please check the below screenshots.
I have given my GitHub email ID and GitHub password as my credential.
How should I resolve this error?
Also, please explain me in brief how to move ahead with the question once the error is resolved. 

 

Thank you.

1 ACCEPTED SOLUTION

EricDohr
ServiceNow Employee
ServiceNow Employee

Rather than using your GitHub password, you will want to create a token with the appropriate rights.  Check out this doc from GitHub for creating a token.  Best of luck! 

View solution in original post

6 REPLIES 6

EricDohr
ServiceNow Employee
ServiceNow Employee

Rather than using your GitHub password, you will want to create a token with the appropriate rights.  Check out this doc from GitHub for creating a token.  Best of luck! 

Thank you so much EricDohr. The issue got resolved. I was stuck with this issue for the last 2 weeks.

And EricDohr, (The GitHub fork issue got resolved.) now please tell me how to move ahead with the question. 

Community Alums
Not applicable

Steps:

  1. Goto https://github.com/settings/tokens generate then copy a token for your account
  2. In your SN instance, goto All > Connections & Credentials > Credentials and click New
  3. Fill out the form, pasting your personal access token in the password field and click Update
  4. Credentials are now ready to select from the Import Application dialog in Studio.

For the password field you need to create a Personal access token in Github , once you generate that, copy the token and put it in the password field in the above mentioned "Credential" record

How to create a Personal access token :

  1. In the upper-right corner of any page, click your profile photo, then click Settings.

SandeepDutta_0-1665295166217.png

 

 

  1. In the left sidebar, click Developer settings.SandeepDutta_1-1665295166218.png

     

     

  2. In the left sidebar, click Personal access tokens.SandeepDutta_2-1665295166225.png

     

     

  3. Click Generate new token.SandeepDutta_3-1665295166224.png

     

     

  4. Give your token a descriptive name.SandeepDutta_4-1665295166226.png

     

     

  5. To give your token an expiration, select the Expiration drop-down menu, then click a default or use the calendar picker.SandeepDutta_5-1665295166226.png

     

     

  6. Select the scopes, or permissions, you'd like to grant this token. To use your token to access repositories from the command line, select repo.

SandeepDutta_6-1665295166340.png

 

 

  1. Click Generate token.SandeepDutta_7-1665295166347.png

     

     

SandeepDutta_8-1665295166345.png

 

https://docs.github.com/en/enterprise-server@3.4/authentication/keeping-your-account-and-data-secure...