incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

[Question][GitHub] Scope for the GitHub personal access token

Open ss892714028 opened this issue 3 years ago • 7 comments

Question

I am trying to connect Devlake w/ Github. I am wondering what scope I should select for the personal access token?

Screenshots

If applicable, add screenshots to help explain. image

Additional context

Add any other context here.

ss892714028 avatar Aug 10 '22 05:08 ss892714028

Hi, are you trying to connect to private repo? For Public Repo, you don't need to grant any permission at all. For Private Repo, the repo section must be checked.

klesh avatar Aug 10 '22 06:08 klesh

Hi, are you trying to connect to private repo? For Public Repo, you don't need to grant any permission at all. For Private Repo, the repo section must be checked.

Thank you for the reply, this makes sense to me. I have another question, what exactly is the endpoint url? Where should I go to find this link? Can you give me an example?

ss892714028 avatar Aug 10 '22 06:08 ss892714028

Hi, for Github Cloud it is https://api.github.com/. The same value of from the place holder image Maybe we should mention it in our Document 😃

klesh avatar Aug 10 '22 06:08 klesh

This explains it, thanks. Looks like this field is reserved for GitHub on-premise haha

ss892714028 avatar Aug 10 '22 07:08 ss892714028

Thanks for raising this issue @ss892714028 :) We would love to have you in our Slack community :)

iamppborah avatar Sep 04 '22 18:09 iamppborah

Hi, are you trying to connect to private repo? For Public Repo, you don't need to grant any permission at all. For Private Repo, the repo section must be checked.

We can improve our docs by adding the above, @klesh your thoughts ?

iamppborah avatar Sep 04 '22 18:09 iamppborah

@ppborah I totally agree, we should add this to the Github related document.

klesh avatar Sep 05 '22 16:09 klesh

Notice: github graphql need read:user and read:org in future.

likyh avatar Sep 30 '22 02:09 likyh