You might get an authorisation error in case you are using a default GitHub endpoint created by Azure DevOps pipeline. This is because the scope of the token used in the endpoint is limited. You will have to create new GitHub endpoint with appropriate scope.