Skip to main content

GitHub connection fails because of repository access

Fix GitHub connection errors in ValiantAI: give the Valiant app access to only the one repository that holds your website, then try again.

These messages mean the Valiant app was installed on GitHub, but not on exactly the one repository that holds your website. ValiantAI only connects when the app can see a single repository it recognizes as your site, so it refuses an install that covers all your repositories and fails if it cannot find your site's repository. The fix is to give the app access to Only select repositories with your website's repository chosen, then connect again.

The messages appear on the GitHub card on the Integrations page, Website tab (the card shows Reconnect needed) after a first connection attempt fails, or on the setup screen if you connected while setting up your account. If a Reconnect or Change account attempt fails on a website that is already connected, your existing connection keeps working, the card stays Connected and no message appears; fix the repository access below and try again.

Common messages and fixes

"You gave us access to all your repositories. On GitHub, choose 'Only select repositories'..."

What it means: when you installed the app, you chose All repositories. ValiantAI does not keep access to every repository, so it did not connect. The app is still installed on your GitHub account.

How to fix it:

  1. On GitHub, open the app's settings. For a personal account: select your profile picture, then Settings > Applications > Installed GitHub Apps, and select Configure next to the Valiant app. For an organization: open the organization's Settings, then GitHub Apps, and select Configure.

  2. Under Repository access, select Only select repositories.

  3. In Select repositories, choose the one repository that holds your website.

  4. Select Save.

  5. Back in ValiantAI, select Try Again on the setup screen. On the Integrations page, a first connection cannot be restarted with Reconnect (see "If Reconnect says Your website isn't connected yet" below).

"You gave us access to all your repositories, so we removed that access..."

What it means: the same as above, but ValiantAI also uninstalled the app, so nothing on GitHub needs tidying.

How to fix it: start the connection again. When GitHub asks which repositories, choose Only select repositories, pick the one that holds your site, and select Install.

"We couldn't see your repository. Give access to the repository that holds your site, then try again."

On the setup screen this reads "Choose just the one repository that holds your site, then try again."

What it means: the app was installed, but ValiantAI could not find your website among the repositories you gave it. If you chose several repositories, ValiantAI looks for the one whose configuration names your website's domain (for example a CNAME file or the homepage setting in package.json). If none does, or more than one does, it cannot tell which one is your site. It does not check at all if you chose more than 25 repositories. ValiantAI also ignores archived repositories, so if the only repository you chose is archived on GitHub, it cannot connect.

How to fix it:

  1. Open the app's Configure page on GitHub, as in the first fix above.

  2. Make sure Only select repositories is selected and that only your website's repository is chosen. Remove any others.

  3. Select Save, then connect again from ValiantAI.

If your website is built from a repository you cannot see in the list, the repository may belong to a different GitHub account or organization. Ask whoever owns it to install the app, or see Can my web developer connect my website to ValiantAI for me?

"We couldn't confirm that connection came from you. Please start again from this screen."

What it means: ValiantAI could not confirm that the GitHub installation it received belongs to you, for example because you finished the install while signed in to a GitHub account that cannot see that installation, or GitHub returned an installation that was not created or changed during this connection attempt.

How to fix it: sign in to GitHub with the account that owns the repository, then start the connection again from the setup screen, or from the GitHub card if your website was already connected. After a failed first connection on the Integrations page, see "If Reconnect says Your website isn't connected yet" below.

"The connection was cancelled. Try again whenever you are ready."

On the setup screen this reads "GitHub said the connection was not approved. Try again, and choose Install when GitHub asks."

What it means: GitHub did not return an installation, or the app installation is suspended on your GitHub account.

How to fix it: connect again and select Install on GitHub. If you suspended the app earlier, open its Configure page on GitHub and select Unsuspend first.

"We couldn't finish connecting your site. Please try again."

What it means: something unexpected stopped the connection. How to fix it: connect again. If it fails twice, contact support.

"Connecting your website isn't available right now. Please try again later."

What it means: GitHub connections are temporarily unavailable on ValiantAI's side. How to fix it: try again later, or contact support if it continues.

If Reconnect says "Your website isn't connected yet. Connect it first."

This happens when your very first connection attempt did not complete: the card shows Reconnect needed (or Connecting), but there is no working connection yet to reconnect. Message ValiantAI support with the message you see and your repository's name, so they can help you start the connection again.

If the problem continues

Message ValiantAI support from the chat inside ValiantAI (see How to contact ValiantAI support). Include:

  • the exact message (a screenshot is ideal),

  • the name of the repository that holds your website,

  • whether it belongs to your personal GitHub account or an organization, and

  • roughly when you tried.

Related articles

Did this answer your question?