Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Devops Azure not enough permission for hooks (for collaborator)

I have a private repository. I added my friend as collaborator. Then I also made Devops Azure and added/installed Azure pipeline on GitHub.

Now, when my friend logs in on his Devops account, he wants to make a pipeline for the project I added him as a collaborator via GitHub. Good thing is he can see the repository from drop down list. When he chooses that and clicks review and run, Here is what the error states:

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

Any idea how I can fix it? or how I give him the enough permission for that?

like image 246
Nika Kurashvili Avatar asked Sep 14 '25 05:09

Nika Kurashvili


2 Answers

According to your description, I reproduced your problem.

enter image description here

The cause of this problem is because your repository is private. If it is a personal repository, only the repository owner can create hooks. You can refer to this case with similar issue.

If you use the classic editor to create a pipeline, you only need to be authorized with a GitHub personal access token.

enter image description here

like image 60
Hugh Lin Avatar answered Sep 15 '25 20:09

Hugh Lin


If it is a personal repository, only the repository owner can create hooks. If it is an organization repository, you need at least "Admin permissions" which can "Change a repository's settings" with "Adding, removing, and editing webhooks and service hooks permission included. Refer to this link for details: https://help.github.com/articles/repository-permission-levels-for-an-organization/#changing-repository-settings

like image 38
Sathia Avatar answered Sep 15 '25 20:09

Sathia