Time-saver for teams who modularize their codebase across several GitHub repositories

Do your builds need to access resources in a bunch of different GitHub repositories? Are teams regularly adding new repos? With this update, you can tell our GitHub App to automatically give access to all new repos, saving you the effort and ensuring builds keep running.

What’s new?

We introduced a simple new toggle in the Additional Repos section (accessed via the Project Settings > Integrations > Git provider menu) which allows you to enable access to every repo the GH App has access to (including any repos added to GH in future).

The toggle will only appear if the following conditions are true:

  • Your Bitrise workspace is connected to GitHub via the Bitrise GitHub App
  • You are logged in as a Bitrise user who is also the GitHub admin for your organization
  • You configures the GitHub App has access to ‘all repos’

The second condition exists for security reasons.

Find out more about our GitHub App, linking repositories and this new feature in our Devcenter.

On release of this feature, GitHub will have sent you an Updated Permissions Request email whether you intend to use the new feature or not.

This is a standard message from GitHub, is legitimate and is nothing to worry about. Customers will need to accept this update by following the link in the email if they want to take advantage of the new capability.

Why this is useful?

Each Bitrise project has a primary Git repository. This is where your project’s code is stored and this repository is cloned when we start a build. By default, a Bitrise project can’t access other repositories.

However, your project might require other repositories. For example, it might have private submodules that it must access during a build. If you use the GitHub App, you can do this via linking additional repositories.

But linking additional repositories one-by-one can become painful, particularly in situations where developers have modularized their apps into different repos e.g. iOS developers breaking up their codebase into separate SPM packages. If new repos are created regularly, someone has to remember to come into Bitrise and update the list of Additional Repositories every time.

This update takes that pain away. Your GitHub admin can switch the new toggle and Bitrise builds will have access to every repo your GitHub App is allowed to access, including any new repos added in future.

Happy building! :building_construction: