Connect the Spryker CI to a GitHub managed project
Edit on GitHubThere are two options for connecting Spryker CI to your repository: using Spryker CI’s native integration or using an access token.
Connect using Spryker CI native integration
- In Spryker CI, go to Projects.
- On the Projects page, select the Spryker Upgrade Service project.
- Go to Code.
- In the Connect Git repository pane, for GIT HOSTING PROVIDER, select GitHub.
- For ADD GIHUB INTEGRATION select +.
- For ORGANIZATION, click on the field and select +. This opens GitHub.
- Select the organization you want to connect. You should have administrator rights in the repository.
- In the Authorize & Request pane, select Only select repositories.
- For Select repositories, select the repository you want to connect.
- Click Authorize & Request.
- To authorize the action, enter your GitHub account password and click Confirm. This closes the window, and the connected organization is displayed in the ORGANIZATION field.
- For REPOSITORY, select the repository you’ve connected. Now the Upgrader is connected to your project.
Connect Spryker Code Upgrader using GitHub access token
To connect the Upgrader manually using a GitHub access token, follow the steps.
Prerequisites
To enable the Upgrader to analyze the project and create PRs, the GitHub personal access token (Fine-grained token) should have the following permissions:
-
Metadata: Access: Read-only
-
Pull requests: Access: Read and write
Configure the connection in Spryker CI
- In Spryker CI, go to Projects.
- On the Projects page, select the Spryker Upgrade Service project.
- Go to Integrations.
- On the Integrations page, click New integration.
-
On the New integration page, click the Git tab.
-
Select GitHub.
- On the Add new GitHub integration page, enter a NAME.
- Select SHARING and AVAILABILITY per your requirements.
- For AUTHORIZATION METHOD, select Personal Access Token.
- For TOKEN, enter the GitHub access token.
-
Click New integration. This connects the Upgrader to your GitHub organization.
-
To select the needed repository, go to Code.
-
On the Switch repository or Git hosting provider page, click the GitHub tab.
-
Select a REPOSITORY to connect the Upgrader to. This displays the message about a successful update. Now the Upgrader is connected to the repository.
Thank you!
For submitting the form