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

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 ?



Solution 1:[1]

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/

Solution 2:[2]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 BhanunagasaiVamsi-MT
Solution 2