Onboard GitHub Repositories
SCS allows you to onboard GitHub repositories to perform security scanning and generate Software Bill of Materials (SBOM) for your codebase. As the number of repositories grows, it can become challenging to consistently track security findings, dependency risks, and repository posture across development teams. GitHub repository onboarding in SCS helps address this challenge by bringing your repositories into a centralized analysis workflow.
After integration, you can discover and select the repositories you want to scan without manually configuring pipelines. SCS performs analysis in the background and makes the results available within the platform. This helps you gain visibility into repository security posture, review findings in a centralized location, and make informed decisions based on the results.
What will you learn in this topic?
By the end of this topic, you will be able to understand:
- How GitHub repository onboarding works in SCS.
- How to create or select a GitHub connector for repository onboarding.
- How to choose GitHub repositories for security scanning and SBOM generation.
- How to modify or delete an existing GitHub integration.
- How to view onboarded repositories and their scan results within SCS.
Understand GitHub repository onboarding in SCS
Repository Security Posture Management (RSPM) in SCS helps organizations maintain visibility into the security and composition of repositories across their software development ecosystem. GitHub repository onboarding extends this capability by allowing GitHub repositories to be discovered, analyzed, and tracked within SCS. By bringing GitHub repositories into a centralized repository inventory, teams can establish a consistent approach to repository analysis, review security findings in context, and maintain visibility across GitHub organizations and projects. For more information about RSPM, see the RSPM with Harness SCS documentation.
The following table provides a structured overview of why GitHub repository onboarding is used, when it is appropriate, and how it can be effectively leveraged within SCS for security scanning and SBOM generation.
| Why use it? | When to use? | How can you leverage it? |
|---|---|---|
| Centralize repository visibility within SCS. Reduce manual repository onboarding effort. Maintain continuous repository monitoring across GitHub repositories and organizations. | When onboarding GitHub repositories into SCS for continuous monitoring. When managing security visibility across multiple repositories and organizations. When streamlining repository discovery and analysis workflows. | Onboard selected repositories or automatically include future repositories. Review repository findings and security posture from a centralized view. Track repository insights to support remediation and dependency management. |
Create a GitHub integration
Creating a GitHub integration allows you to connect your repositories to SCS and enable onboarding for security scanning and SBOM generation. You can create a GitHub integration in the following ways:
Via Harness connector
To configure a GitHub integration in SCS through a Harness Connector, complete the following steps:
Step 1 - Create/Select the GitHub connector
A GitHub connector allows SCS to securely connect to your GitHub account and discover repositories for onboarding. To create or select a GitHub connector, complete the following steps:
-
Navigate to the Integrations page under the Manage section from the sidebar navigation of your SCS account.
The page displays key information for each integration, including the integration type, organization URL (your GitHub URL), integration status (active or inactive), and the last scan time of the associated repositories. -
Click on the
Add Integrationbutton to go to the Configure Integration page.
Alternatively, you can access this page by clicking Get Started > Get Started from the sidebar navigation of your SCS account. -
Scroll down to the GitHub collapsible. It is expanded by default. If it is collapsed, click it to expand.
-
Click the
Configurebutton under Onboard your repositories to open the Get Started page.
The Get Started page displays options for onboarding through a Harness Connector or a GitHub Application. By default, the Through Harness Connector configuration card is expanded. -
Within the Through Harness Connector configuration card, click
Select Connectorto open theCreate or Select an Existing Connectordialog. -
Select your required connector from the list of existing connectors.
You can search for your created connector or filter them by Project, Organization, and Account. -
Alternatively, click
+ New Connectorto create a new GitHub connector for onboarding new repositories. For more information, see the GitHub connector settings reference. -
Click
Apply Selectedto use the existing or newly created GitHub connector. -
Click
Nextto open the Choose repositories to scan configuration section.
Step 2 - Choose the repositories to scan
Onboarding GitHub repositories allows you to select either all repositories or only the ones you want to scan. The Choose repositories to scan configuration section lists all repositories associated with your GitHub account and lets you search for specific repositories.
Forked GitHub repositories are not supported for onboarding and do not appear in the repository selection list. Only repositories that you own are available for selection.
To choose the GitHub repositories for scanning, complete the following steps:
-
Select the
Automatically add all future repositories owned by the resource ownercheckbox to include all current repositories and automatically add new repositories for scanning. -
Alternatively, select the checkbox beside
REPOSITORY NAMEcolumn to select all the repositories in that configuration page, or select the checkbox beside any individual repository name to select that particular repository. -
After verifying the details, click Finish.
Once finished, you can view the You’re Done toaster message at the top, indicating the successful onboarding of your GitHub repositories.
Via GitHub application
To configure a GitHub integration in SCS through the GitHub application, complete the following steps:
Step 1 - Configure the GitHub application
The GitHub application allows you to authorize SCS to discover and onboard repositories directly from your GitHub organization or account. To configure the GitHub application, complete the following steps:
-
Navigate to the Integrations page under the Manage section from the sidebar navigation of your SCS account.
The page displays key information for each integration, including the integration type, organization URL (your GitHub URL), integration status (active or inactive), and the last scan time of the associated repositories. -
Click the
Add Integrationbutton to go to the Configure Integration page.
Alternatively, you can access this page by clicking Get Started > Get Started from the sidebar navigation of your SCS account. -
Scroll down to the GitHub collapsible. It is expanded by default. If it is collapsed, click it to expand.
-
Click the
Configurebutton under Onboard your repositories to open the Get Started page.
The Get Started page displays options for onboarding through a Harness Connector or a GitHub Application. By default, the Through Harness Connector configuration card is expanded. -
Click the Through GitHub App configuration card to expand the details.
-
Click the
Launch GitHub to configurebutton to open the GitHub page for the application.
-
Click
Configurein the upper-right corner to open the installation page for the application. -
Select your GitHub account to configure the repository access for the application.
- Select the radio button beside All repositories to grant access to all current and future repositories.
- Select the radio button beside Only select repositories to grant access only to the repositories of your choice.
- Click the
Select repositoriesdropdown to select one or multiple repositories.
- Click the
-
Click Save to finish the GitHub application configuration.
Upon successful configuration, you will be automatically redirected to the Choose repositories to scan configuration section.
Step 2 - Choose the repositories to scan
The repository selection workflow is identical for both GitHub onboarding methods. For instructions on selecting repositories, see Step 2 - Choose the repositories to scan under Via Harness connector.
Modify/Delete a GitHub integration
Modifying a GitHub integration allows you to update the repositories selected for scanning, while deleting an integration removes it from SCS. To modify or delete a GitHub integration, complete the following steps:
-
Navigate to the Integrations page under the Manage section from the sidebar navigation of your SCS account.
-
Find or search your created integration from the list of available integrations.
-
Click the
more options (three-dot) iconon the right side of the integration row to view theEditandDeleteoptions.-
Click the
Edit (pen) iconto open the Edit Repositories dialog. -
Select the checkboxes for your preferred repositories from the list or select the checkbox to automatically add all future repositories.
-
After verifying the details, click Save Changes. Once finished, you can view the Integration Updated toaster message at the top, indicating the successful modification of your GitHub integration.
noteWhen you modify an integration and select additional repositories without unchecking the previously selected repositories, SCS scans both the newly selected repositories and the repositories that were previously selected.
-
Alternatively, click the
Delete (trash) iconto open the Are you sure you want to delete? dialog. -
Click Confirm to delete your GitHub integration.
-
View an onboarded repository
After you add a GitHub integration and select the repositories for scanning, SCS immediately starts scanning the selected repositories in the background. Once the scans are complete, you can view the onboarded repositories and their scan results within SCS. To view an onboarded repository, complete the following steps:
-
Navigate to the Code Repositories page under the Supply Chain section from the sidebar navigation of your SCS account. The page displays key information for each scanned repository, including the repository branch, SBOM score with an option to download the SBOM, risk and compliance overview, vulnerability count, and last scan status.
-
Identify the repositories from the list or use the search bar to find it.
-
Click the repository to view its scan details.