Adding a GitHub integration allows you to use GitHub as your Git hosting provider. This way you can create pipelines that build, test, and deploy the code stored in GitHub repositories.
The GitHub integration uses GitHub Apps to get the necessary account information and access the respositories you want to use in Buddy.
GitHub Apps integration was introduced in November 2021. Every new project connected to a GitHub repository must use this integration. Projects created before November 2021 remain fully functional and require no action as they continue using the legacy, OAuth-based integration.
To learn more, read this blog post.
Setting up a GitHub integration
- Add a new project and choose GitHub as the Git hosting provider.
- In the GitHub popup window, click Authorize Buddy to grant Buddy access to the required information from your GitHub account.
Permission requirements screen
- Select which organization's repositories you want to use in Buddy:
Selecting GitHub organization
- Decide whether you want to give Buddy access to all your repositories within the selected organization, or if you want to limit the permissions to a single repository. Confirm your choice by entering your GitHub password.
Selecting the scope of repository access
- Back in Buddy, name your project and choose the repository you want to use. Choosing the repository
When you create the project, Buddy adds a webhook to your repository. This allows to trigger deployments whenever new commits are pushed to the repo when using the On Push pipeline execution trigger mode.
The contents of the connected repository are reproduced in read-only mode. To view them, go to the Code tab, where you can also browse the files and view commit history.
Managing repository access
After adding the integration, you can adjust its access scope or change the GitHub organizations the integration works with.
Follow these steps:
- Select Integrations from the left navigation panel.
- Find the GitHub integration you want to adjust on the integrations list.
- Click Set permissions to open a GitHub popup window.
Integration settings in Buddy
- In the popup window, click the organization name you are already using to change the access scope or revoke access. Choose an organization you haven't used before to configure it and start using it in Buddy.
Choosing the repository
Look for the word "Configure" to identify the organization(s) you are already using in Buddy.
"Configure" marks organizations that are in use
Last modified on January 4, 2022