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.
- 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.
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
Last modified on January 4, 2022