Skip to main content

Integrate your first repositories

To get started with automated secrets detection and remediation, you need to add a Version Control System (VCS) integration.

VCS integration setup page

tip

If you want to try GitGuardian Internal Monitoring out on a test repository, go ahead and clone our sample_secrets repo. It contains 8 unique secrets our detection engine will find during the scans.

Integrate with GitHub

  1. From the VCS integrations page, select GitHub

GitHub integration

  1. Confirm access to your GitHub account

GitHub integration

  1. Choose whether you want GitGuardian to monitor all your repositories or a selection of repositories. This can be changed later from your GitHub account.

GitHub integration GitHub integration

  1. Go back to your GitGuardian dashboard to see your added user or organization and its repositories.

GitHub integration

Once installed, GitGuardian will also give you the option to add or remove repositories from the monitored perimeter directly from your workspace.

Integrate with other VCS platforms

Integrate with GitLab

When integrating GitGuardian with GitLab, you can choose to monitor an entire instance or certain groups only. In both cases, you will need to generate a personal access token with admin permissions for the chosen perimeter.

Once installed, GitGuardian will also give you the option to add or remove repositories from the monitored perimeter directly from your workspace.

Step 1. Create a personal access token

  1. Go to your User Settings on GitLab
  2. View the Access Tokens section
  3. Choose a name (for example “gitguardian-secrets-scanning”)
  4. IMPORTANT: Select the API scope

If you need to, visit the GitLab documentation for more details on how to create personal access tokens.

Step 2. Configure your GitLab integration via a system hook or a group hook

There are two ways to configure your GitLab integration, using system hooks or group hooks. Now that you have your personal access token ready, follow one of these guides depending on your preference:

Integrate with Bitbucket server/data center

danger

This integration does not support projects and repositories hosted on Bitbucket Cloud (bitbucket.org). Check out our Bitbucket Pipelines integration to keep your Bitbucket Cloud workspace secure.

Step 1. Create a personal access token

  1. In your Bitbucket workspace, navigate to your Bitbucket user settings (typically on your upper right hand corner, under Manage Account)
  2. Go to the Personal access tokens section
  3. Create a personal access token with a simple name such as "GitGuardian" and Read permissions on projects and Admin permissions on repositories. Set the "Automatic Expiry" option to "No".

Step 2. Configure your Bitbucket integration via a system hook or a group hook

There are two ways to configure your Bitbucket integration, at the instance-level or at the project-level. Follow one of these guides depending on your preference:

How can I help you ?