: Add GitLab to Prisma Cloud Application Security
Focus
Focus

Add GitLab to Prisma Cloud Application Security

Table of Contents

Add GitLab to Prisma Cloud Application Security

Integrating Prisma Cloud with GitLab makes it possible for Application Security to scan your Infrastructure-as-code files (Terraform and CloudFormation) and monitor configuration issues in development.
As a prerequisite you are required to add the Prisma Cloud IP addresses and hostname for Application Security to an allow list, to enable access to the Prisma Cloud Console.
It is recommended to perform the integration when logged on to GitLab with Admin user permissions.
  1. Select
    Settings > Code & Build Providers > Add
    .
  2. Select
    GitLab
    .
  3. Configure your GitLab account on Prisma Cloud Application Security and then select
    Next
    .
  4. Select the repositories to scan and then select
    Next
    .
  5. A
    New account successfully configured
    message appears after you have successfully set up the configurations and then select
    Done
    .
    Your configured GitLab repositories will appear under
    Code Repositories
    on the
    Code & Build Providers
    page. On your next GitLab scan, the scan results will include the new configured repositories. Access Monitor and Fix Issues in Your Scansto view the scanned results.
  6. Verify that the GitLab integration is successful:
    1. Select
      Settings
      >
      Code & Build Providers
      >
      Add
      >
      GitLab
      .
    2. Verify that your
      GitLab
      integration is displayed.
      You may have to wait for up to three minutes before the status of the integration is updated and displays
      Succeeded
      .

Support for multiple integrations

Prisma Cloud supports multiple integrations for GitLab. After the initial integration with Prisma Cloud, you can continue to add additional organizations and workspaces using a different or a same user or team token.
Multiple integrations from a single Prisma Cloud account enables you to:
  • View a list of integrations on a single console
  • Add additional integrations
  • Delete an existing integration
    Selecting a repository for a specific integration will restrict you from selecting the same repository in another integration.
  1. Add additional integrations to a configured GitLab account.
    1. Select
      Settings
      >
      Code & Build Providers
      >
      Add
      >
      GitLab
      (under
      Code Repositories
      ).
    2. Select
      Add Integration
      in the wizard.
      The
      Configure Domain
      step of the installation wizard is displayed.
    3. Execute
      steps 3 - 6
      of the GitLab installation process above.
      The new integration is displayed on the landing page of the wizard. You can view your integrated GitLab repositories under
      Code Repositories
      on the
      Code & Build Providers
      page. The next scan of your GitLab systems will include include the new integrations with their configured repositories, and the results will be displayed in Monitor and Fix Issues in Your Scans.

Manage Integrations

Manage integrations from the integration wizard.
  1. Access the GitLab Self-Managed integration wizard - see
    step 1
    of Support for multiple integrations above > select the menu under
    Actions
    .
From Actions you can:
  • Add or remove repositories from
    Reselect repositories
  • Delete integrations

Recommended For You