Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Custom Rest Action to connect to GitHub not working

Not applicable

Hi Team,

 

I have created a rest action to connect to GitHub as below . There is no input parameters passed. 

In the credentials I have created new API key credentials and added the passtoken from github.

Ankur20_0-1733215540955.png

 

After I click on "Test Rest Step".I get message as below:

Ankur20_1-1733215634600.png

 

But if I change the method to Get then I get Status code 200

Ankur20_2-1733215682938.png

 

 

 

1 ACCEPTED SOLUTION

Nithin Thumalap
ServiceNow Employee

Hi,

The scopes selected for the token might be the reason. Verify whether the respective api permission is checked for your use-case.

View solution in original post

1 REPLY 1

Nithin Thumalap
ServiceNow Employee

Hi,

The scopes selected for the token might be the reason. Verify whether the respective api permission is checked for your use-case.