Bug report: Can not use Organization account for AI Studio for saving project to Github

For clarity on multiple posts in this forum like below creating a topic on the real issue.

AI Studio can only sync to a private account’s repositories, not to an organzation’s repositories.

Steps to reproduce:

  1. Make sure your AI Studio account is not linked to any github account.
  2. Click the Save to Github button in AI Studio
  3. In the popup you will see a treeview with your personal account and the organization you are admin of
  4. Select the organization
  5. Select “access to all repositories”. I assume you need rights to the root of the organization in order to create a new repository for that org.
  6. A button “On Main“ show on the top not clear what it does.
  7. Click “Create Git Repo“
  8. The error shows “Failed to create GitHub repository, Insufficient permissions to create the GitHub repository. Please check your permissions for the AI Studio App on GitHub“.

I have tried uninstalling the AI Studio app from both personal and org accounts, re install, nothing helps.

For example, I am able to link my org account to Firebase Studio.

Thanks,

I have the same problem. Happens exactally as you describe it.

I used this little hack to make it work for me: (BUG connecting GitHub ORG to AI Studio)

  1. Disconnect AI Studio from your GitHub account
    Settings > Applications
    In both tabs click Uninstall (Installed and Authorized)

  2. Go back to the AI Studio project
    No need to create a new one or clear cache, but for safety you can try

  3. Reconnect AI Studio to your personal GitHub account (not the org) and create a new project there

  4. Transfer the project ownership to the ORG and return to AI Studio
    It will show an error because the project no longer exists in the same location
    But if you click the project URL shown at the top of the tab, it will take you to the project inside the ORG

  5. Remove AI Studio from your GitHub account again
    Repeat step 1 and uninstall in both places

  6. Refresh AI Studio without cache and connect to GitHub again
    This time connect using the ORG
    It should find the project and from now on sync automatically

I followed this step and it worked but THe subsequent syncing is not working

This makes no sense, i won’t use a product that forces my team to move MY IP to their github first.

Same issue, not working with organization

Old thread, but bumping because I’m running into the exact same issue. Hoping there’s a fix for this soon.

Well, this is some great customer support from Google. Not like anyone with a GitHub Organization wants to sync the slop code to a repo or anything.

Hello,

This should have been resolved. Please retry and let us know.

Hello,

It’s not been fixed. After disconnecting it just creates a new repository in my private account. Also, I can only create a new repository and not commit to an existing one.

One year and counting since i reported this bug.

Hello,

Please try the below steps:

  • To create a new repository under your GitHub Organization instead of your personal account, uninstall the Google AI Studio app from your personal GitHub account as described in Reviewing and modifying installed GitHub Apps so the app remains installed only on your GitHub Organization (uninstalling the app only removes the app installation and does not delete or modify your existing repositories), then create the repository again from Google AI Studio.
  • To sync and commit with an existing GitHub repository, import that repository into a new project as described in Build apps in Google AI Studio, then open Sync to GitHub and select More options to link and sync with that repository.