GitHub
Guide on integrating GitHub with Ketryx
Last updated
Was this helpful?
Guide on integrating GitHub with Ketryx
Last updated
Was this helpful?
This guide provides an introduction to the integration of GitHub with Ketryx. Our focus is on outlining the process of setting up this integration, utilizing Personal Access Tokens (PAT), to enhance your software development practices. This guide will walk you through the steps required to establish a connection between GitHub and Ketryx.
Tools used to develop and release a product with Ketryx Lifecycle Management are provided in . The release process is described in detail in , while setting up code repositories is described in .
The integration process with GitHub varies slightly depending on whether you are working with public or private repositories. Here's a breakdown of the key differences:
Accessibility: Public repositories are open to the public, meaning that anyone can view the repository content and its history.
Integration Setup: For public repositories, the setup process for integrating with Ketryx is generally straightforward. You do not need to use a Personal Access Token for basic integration tasks, such as SOUP dependency analysis.
Data Retrieval: Accessing publicly available data from GitHub, like pull requests or code changes still need a Personal Access Token to access GitHub's API.
Accessibility: Private repositories restrict access to authorized individuals or collaborators. Only those with permission can view and interact with the repository.
Integration Setup: When integrating with private repositories, you typically require a PAT. This token ensures secure and authorized communication between GitHub and Ketryx for tasks like SOUP dependency analysis and Code Change Reviews.
It's important to consider your repository's visibility when setting up the integration, as public and private repositories have distinct access requirements. The integration guide provides specific instructions based on the type of repository you are working with, ensuring a seamless and secure integration experience.
Go to your GitHub account settings
Navigate to Developer settings and then Personal access tokens
Click on Generate new token (classic)
Give your token a relevant name and select the desired scopes for access, but at least:
repo
read:user
Click Generate token and make sure to copy it immediately, as it won't be shown again
This token will serve as the authentication method to fetch both Pull Request data and the Git repository for SOUP dependency analysis from GitHub.
When entering the authentication credentials in Ketryx, the username has no effect, but the password should be the PAT.
The following Read-only permissions are required for the integration with Ketryx:
Contents
Metadata
Pull requests
It should look like this:
This token will serve as the authentication method to fetch both Pull Request data and the Git repository for SOUP dependency analysis from GitHub.
When entering the authentication credentials in Ketryx, the username has no effect, but the password should be the PAT.
Please see or follow the following steps to create a PAT:
Please see for more information on how to create a fine-grained PAT.
For information on how to use the Code Change Review feature, please see the .