Some users have asked us why some GitHub repositories were missing in Gearset for selection in their source control connection. Often this turns out to be the case that during the initial setup Gearset was granted access to the personal repositories for the GitHub account, but not organization repositories.
Revoking application access in GitHub and re-adding gives you another chance to give access to your organization repositories.
To do so in the GitHub web application, click on your profile icon (top right corner), navigate to Settings
> Applications
> Authorized OAuth Apps
> Gearset Deploy
and click the Revoke
button (see images below).
After revoking Gearset's access permission, you can click + Connect to GitHub
in the Source control and services page to re-authorize the repository permissions of an account or connect to a different account.
Note: You may need to click the bin icon first to remove the existing GitHub connection, and to see this option to re-connect your GitHub again: + Connect to GitHub
.
There could be button called "Grant
" which you have to click to provide access to your organization.
The green check mark will be shown like below confirming that the access is granted.
Clicking on Authorize Gearset
button will grant the repository access you are requesting.
Organization Access
If you still encounter the error "Gearset can't find any repositories. Either create one or update your security settings in GitHub to grant access
" - it is possible that your GitHub organization requires permissions higher than your GitHub user has to access your repos.
To check this, go to Settings
> Applications
> Authorized OAuth Apps
> click the button Gearset Deploy
and check if you see the following message:
In this case, you need to contact the GitHub organization owner to approve (they would get a notification about this).
For more information see GitHub’s documentation:
Requesting organization approval for OAuth apps
When your Gearset connects with your source control, make sure you Request access to the organization via the Request
button.