Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MauroCerzosimo
New Member

Fabric GitHub connection: “Can’t fetch branches from this repository” with fine-grained PAT

Hi all,

I’m trying to connect Fabric to GitHub (cloud version).
I created a fine-grained personal access token (PAT) with:

  • Contents: Read and write

  • Access to my specific repository (explicitly selected under “Repository access”)

    Then in Fabric, I added the Git connection with this PAT. After that, I entered my repository URL:

    https://github.com/<org>/<repo>.git

    aslo tried 

https://github.com/<org>/<repo>​

 

  • But when I try to select a branch, Fabric shows the error:
    • “Can’t fetch branches from this repository.”
      So far I’ve checked:
      • The PAT definitely has repo permissions and access to the repository.
      • The repository is under my organization in private mode. 

        Is there any additional organization-level setting required for Fabric to be able to list branches? 
        Has anyone run into this and found the missing step?
        Thanks in advance!

         

        Screenshot 2025-09-06 at 12.07.54.png

         

1 ACCEPTED SOLUTION
MauroCerzosimo
New Member

Hi @tayloramy ,
Thanks for your help! The issue was that I hadn’t added Fabric to the IP allowlist.

I downloaded the Microsoft IP list  and added the Power BI IP ranges — that resolved the problem.

View solution in original post

5 REPLIES 5
MauroCerzosimo
New Member

Hi @tayloramy ,
Thanks for your help! The issue was that I hadn’t added Fabric to the IP allowlist.

I downloaded the Microsoft IP list  and added the Power BI IP ranges — that resolved the problem.

Hi @MauroCerzosimo ,
I'm glad you found a solution and resloved  the query. Thank you very much for sharing here.

If you have further queries please reach out.

 

Thankyou for connecting with Microsoft Community Forum

Hi @MauroCerzosimo
Glad you found a resolution! I never had to add any IPs to an allowlist for GitHub integrations, my organization must not have it restricted like yours does. 

 

If you found this helpful, consider giving some Kudos. If I solved your problem or answered your question, mark this post as the solution. 

v-sshirivolu
Community Support
Community Support

Hi @MauroCerzosimo ,
I would also take a moment to thank @tayloramy 
 , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
 

I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions

 

tayloramy
Community Champion
Community Champion

Hi @MauroCerzosimo

 

This error means that your personal access token doesn't have permissions in the repository. 

 

When creating a fine graned PAT, some different permissions are required if the repo is in an org. 

The first is to set the resource owner as the org instead of you: 

tayloramy_0-1757129792680.png


I believe you need to be an owner of the organization to be able to do this. AFter this is done, you can select the respository or repositories you want to grant permissions to, and apply the sepcific permissions you need, which are Contents: Read and write: 

tayloramy_1-1757129952197.png

 

After all this is set up, you should be good to go. 

You have the correct URL, 

https://github.com/<org>/<repo>

tayloramy_0-1757130353980.png

 



If you found this helpful, consider giving some Kudos. If I solved your problem or answered your question, mark this post as the solution. 
Proud to be a Fabric Community Member

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors