Skip to content

Latest commit

 

History

History
174 lines (99 loc) · 12 KB

onboarding-projects-from-github.md

File metadata and controls

174 lines (99 loc) · 12 KB

Onboarding Projects from GitHub

Security Bot Installation

Onboarding projects into LFX Security is done from the PCC (Project Control Center). As part of this onboarding, a Security Bot is installed on GitHub Organizations of the project.

To setup the Security service using PCC, perform the following steps:

1.Login into PCC.

2. Search for the required project. The Project dashboard appears. Click Security from the TOOLS dropdown menu.

{% hint style="info" %} You can also navigate to Security from the Vertical Sidebar navigation menu. Click Tools and then select Security. {% endhint %}

Security

3.The Security page appears. From the GitHub Onboarding tab, click the icon available next to Connect.

GitHub Onboarding

4.Enter the GitHub organization name in the Organization Name and click Connect.

{% hint style="info" %} Make sure that you logged into the GitHub. {% endhint %}

GitHub Organization

5.The Install Security Bot on GitHub.org instructions page appears. You can read the instructions on how to install the Security Bot from this page. Click Install Security Bot button.

Installing Security Bot

6. A list of GitHub organizations associated with the login account are listed and displayed. Select the required organization for which you want to install the Security bot.

GitHub Organizations

7.The Install & Authorize LFX Security GitHub App page appears. This page provides the following information:

  • Information on the permission requested for the selected repositories. The LFX Security requests the following permissions from the GitHub:
    • Read access to administer, code, check commit status, lookup members, and other metadata.
    • Read and write access to organization hooks, pull requests, and repository hooks.
    • Installing and authorizing LFX Security GitHub App grants these permissions on your account:
    • Read access to emails
  • Access to the repositories. You can either provide access to all the repositories or selected repositories within the GitHub Organization.

Click Install & Authorize to install the LFX Security GitHub App.

Installation Permissions

8.The LFX Security Service GitHub app is installed successfully. You can see the installation success message.

Installation Complete

{% hint style="info" %} You will also receive an email after successful installation of the LFX Security GitHub App. {% endhint %}

9.In the PCC page, you need to click I'm Done Installing the Security Bot after completing the installation process.

Security Bot Installation Complete

10.You can see the list of GitHub organizations along with the repositories for which the Security bot has been successfully configured.

{% hint style="info" %} A green dot present with the GitHub organization name indicates that the Security bot is successfully installed. {% endhint %}

GitHub Organization

Security Bot Uninstallation

You can uninstall the security bot at any point of time from the PCC. When you uninstall the security bot, the security scanning for the GitHub organization is discontinued. You cannot see the vulnerabilities associated with your GitHub organizations.

To uninstall Security service from PCC, perform the following steps:

1.Login into PCC.

2. Search for the required project. The Project dashboard appears. Click Security from the TOOLS dropdown menu. The GitHub organizations are listed. Select the settings icon and click Disassociate GitHub Org.

Disassociate GitHub Org

3.The Uninstall Security Bot on GitHub.org instructions page appears. You can read the instructions on how to uninstall the Security Bot from this page. Click Uninstall Security Bot button.

Uninstalling Security Bot

4.The LFX Security GitHub App opens in a new tab. Click Uninstall from the Danger Zone.

{% hint style="info" %} You can uninstall the Security bot from all the repositories associated with your GitHub organization by selecting All Repositories or select specific repositories for which you want to uninstall the Security bot by selecting Only Select Repositories. {% endhint %}

Uninstallation Process

5. A pop message appears informing that the Security bot will be uninstalled for the selected repositories. Click OK to continue with the uninstallation process.

Dialog Box

6.In the PCC page, you need to click I'm Done Uninstalling the Security Bot after completing the uninstallation process.

Uninstallation of Security Bot

7.The GitHub repositories will be removed from the Security dashboard. But, you can see the GitHub organization name in the Security dashboard.

{% hint style="info" %} A red dot present with the GitHub organization name indicates that the Security bot is successfully uninstalled. {% endhint %}

8.If you want to remove the GitHub organization completely from the Security dashboard, click Disassociate Organization.

Disassociation Organization

9.A popup message appears informing that the GitHub organization will be disassociated. Click Disassociate to continue with the disassociation process.

Dialog Box

Suspending Security Service

You have an option to suspend the Security service scanning without uninstalling the Security bot. When you suspend the Security service, the bot will not be uninstalled. You can revoke the suspension at any point of time by Unsuspending.

To suspend the Security service, perform the following steps:

1.Login into PCC.

2. Search for the required project. The Project dashboard appears. Click Security from the TOOLS dropdown menu. The GitHub organizations are listed, select the settings icon and click Configure Security Bot.

Configure Security Bot

3.The LFX Security GitHub App opens in a new tab. Click Suspend from the Danger Zone.

Suspend

4.A popup message appears informing that the Security bot will be suspended. Click OK to continue with the suspension process.

Dialog Box

5.The GitHub repositories are suspended from the Security dashboard.

{% hint style="info" %} A orange dot present with the GitHub organization name indicates that the Security bot is suspended. {% endhint %}

Security Service Suspension

{% hint style="info" %} To revoke the suspended Security service, click settings icon and click Configure Security Bot and click Unsuspend from the Danger Zone. {% endhint %}

Unsuspend

Associating Individual Repositories to the Project

You can associate an individual repository to a project. PCC allows you to select an individual repository and allows you to assign it to a project.

To associate an individual repository, perform the following:

1.Login into PCC.

2.Select the required project and click Security from the Tools dropdown menu.

Security

{% hint style="info" %} Make sure you see Security bot configured status under Configuration Status column. You can only select the required repository if the security bot is configured. \

If the status shows as Security bot not configured, you cannot select the repository. {% endhint %}

3. Select the required individual repository from the Assigned to Project column that you want to assign to the project.

Repository Selection