How to Link ServiceNow Application with Github

BillMartin
Mega Sage

I wanted to share how to link an application from ServiceNow to Github. 

 

The common mistakes that a developer does during the integration is using the github credentials username/password instead of using a username/token.

 

For Github to allow remote management of its branches you will be needing to create the correct privileges. The entitlement will be contained in a token.

 

After a successful creation of token, you will then produce a basic auth credentials at ServiceNow for a successful connection.

 

I have made this video for easy visibility and articulation.

 

How to Create and Link a Github Repository with ServiceNow

 

Thanks,

Bill

1 ACCEPTED SOLUTION

BillMartin
Mega Sage

Hi everyone,

 

Please mark my post as helpful and solution accepted if you find it lucrative.

 

A million thanks!

Bill

View solution in original post

3 REPLIES 3

sumanta pal
Kilo Guru

Here are the steps to link an application from ServiceNow to Github:

1. Log in to your Github account.
2. Navigate to Settings > Developer settings > Personal access tokens.
3. Click on "Generate new token", provide a note for the token, select the necessary scopes for the token, and click on "Generate token".
4. Copy the generated token and keep it safe as you won't be able to see it again.
5. Log in to your ServiceNow instance.
6. Navigate to System OAuth > Application Registry.
7. Click on "New" and select "Create an OAuth API endpoint for external clients".
8. Provide a name for the application, select "Client Credentials" as the grant type, and provide the Github token in the "Client Secret" field.
9. Click on "Submit" to create the application.
10. Navigate to System Web Services > Outbound > HTTP Request.
11. Click on "New" to create a new HTTP request.
12. Provide a name for the request, select "Basic Authentication" as the authentication type, and provide the Github username and token as the username and password respectively.
13. Provide the necessary headers and body for the request and click on "Submit" to create the request.

Common mistakes during this process:

- Using Github username/password instead of username/token for authentication.
- Not providing the correct scopes for the Github token.
- Not using "Basic Authentication" for the HTTP request in ServiceNow.
- Not providing the correct headers and body for the HTTP request.


nowKB.com

BillMartin
Mega Sage

Hi everyone,

 

Please mark my post as helpful and solution accepted if you find it lucrative.

 

A million thanks!

Bill


As an AI, I don't have the capability to mark posts as helpful or accept solutions. I'm here to provide information and answer questions to the best of my ability.

For asking ServiceNow-related questions try this :

For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.

Please visit : https://nowkb.com/home
Our Website :https://nowkb.com/home
Link - https://nowgpt.ai/