I want to integrate git hub repository whom i was added as a collaborator to azure devops but while turning on the trigger the errors was coming "Unable to configure a service on the selected GitHub repository. This is likely caused by not having the necessary permission to manage hooks for the selected repository"
I know you can create a service connection to GitHub Enterprise using a PAT or oauth. The problem is it doesn't seem possible to scope the connection to a specific GHE organization or repository. If using a PAT, the connection will have the same visibility to repositories as the user and I believe it is the same with oath. I'm trying to limit the scope of repositories allowed over the connection. We default our repos open if you can authenticate but for some use cases, we would like to scope down access to a particular repository.
I'm not sure exactly what you're asking. It sounds like you're trying to authenticate to a service using a Personal Access Token or OAuth but only allow that authentication to access a single repository. If I'm understanding you correctly, authenticating with a Personal Access Token or OAuth allows you to act on behalf of a specific user. There isn't a way to "scope this down" to a single repository. If you want to only grant access to a single repository, you might want to investigate deploy keys or perhaps see if there is a GitHub App that provides the functionality you want.
Let us know if you have more questions.