Thank You for posting in Q & A.
Refer to the below url's
How to create GitHub Enterprise Server - service connection In Azure DevOps
Connecting On premises Azure DevOps to GitHub Enterprise
Please don’t forget to Accept the answer
and up-vote
wherever the information provided helps you, this can be beneficial to other community members.