How to connect azure synapse and an enterprise git repo using personal access token?

1.9k views Asked by At

Im trying to link my git repo to an azure synapse sandbox and Im facing this error

Failed to list GitHub repositories. Please make sure account name is correct and you have permission to perform the action.

Im using a personal access token, an enterprise git account, and full repo access for the token.

enter image description here

Could someone please point what I maybe missing. Does it require any permission on the azure side as well ?

2

There are 2 answers

1
Vamsi Bitra On BEST ANSWER

Configure a Repository

Go to GitHub -> open code and copy HTTPS Link use this link to GitHub enterprise URL Login on synapse -> Creating a personal access token on GitHub -> connect to GitHub.

Ref1 ref1

Creating a personal access token

ref2

ref5 ref6

Reference:

https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

https://www.reviewboard.org/docs/manual/dev/admin/configuration/repositories/github-enterprise/

1
ss301 On

In the GitHub repository owner, only give the owner name. Eg johny, instead of GitHub.com/johny