This guide will help you integrate GitHub into your project by allowing you to fetch and display repositories linked to your organization. To achieve this, you will need your GitHub organization name and a personal access token. Follow the steps below to obtain these credentials and access your repositories.
Obtain Your GitHub Organization Name
Login to Github
This section provides comprehensive instructions on how to log into your GitHub account. Logging into GitHub is a crucial step for accessing your repositories, managing your code, and collaborating with team members.
Navigate to your Organization
This section provides a step-by-step guide on navigating to your organization on GitHub. Accessing your organization's page on GitHub is essential for managing repositories, viewing organizational activity, and collaborating with team members.
Manage or Create Your Organization
In this section, you will learn how to either create a new organization or manage an existing one on GitHub. If you need to establish a new organization, simply click the "New Organization" button available on your GitHub dashboard.
Set Up Your Organization
This step guides you through the process of creating and setting up your organization. You will be prompted to select a subscription plan; you can choose the free plan if it meets your needs. After selecting the plan, enter the required details for your organization.
Finalize Your Organization Setup
After filling in all the necessary details for your organization,click on the "Next" button to proceed. This action will finalize the setup of your organization name and complete the creation of your new token.
Generate a GitHub Token
Navigate to Settings
To begin, access your GitHub account settings by clicking on the top right profile corner.
Navigate to Developer Settings
To begin, access your GitHub account settings and navigate to the Developer Settings section. This is where you will find the necessary tools to generate a new token.
Select Tokens (Classic) under Personal Access Tokens
In this step, locate the Personal Access Tokens section within Developer Settings. Then, select the option for Tokens (Classic) to proceed with generating your token. Click on "Generate New Token" and then select "Generate New Token (Classic)".
Configure Token Details
Customize your token by adding a name and expiration date and scopes.These details help you manage and track your tokens effectively. Once configured, proceed to generate the token by clicking on "Generate Token" Button.
Configure Integration in Your Application
Log in and Navigate to Integrations
Log into your account on the website. Once logged in, open the profile menu by clicking on your profile icon at the top right corner. From the dropdown menu, select "Integrations" to navigate to the integrations management page.Go to RiskHorizon
Find GitHub Integration
On the Integrations page, locate the GitHub integration. You can find it under the "All Integrations" section or directly in the "Code Repositories" tab. This integration allows you to connect your GitHub account with our platform.
Edit GitHub Integration Settings
In the GitHub integration section, click the "Edit" button. This will open the configuration settings where you need to enter your GitHub Token and Organization Name. These details are necessary to establish a secure connection to your GitHub account.
Save and Connect
After entering the required details, click "Connect" to finalize the integration. This will allow you to access and manage all your GitHub repositories directly from your account.