GitGuardian integrates natively with GitHub via a GitHub app that you can install on your personal GitHub repositories and on the repositories of your GitHub organizations.
Note: the GitGuardian GitHub app only has read access to your code. You will need Owner or Manager rights in GitGuardian to set up an integration or customize your settings.
You can refer to the GitHub documentation for more information on GitHub apps.
You can install GitGuardian on your personal GitHub account to monitor your personal repositories.
To install GitGuardian on a GitHub organization you need to be an administrator of that GitHub organization.
Note: if you try to install GitGuardian on a GitHub organization for which you are not an administrator (but only a member), the integration will fail, and will therefore not be linked to your GitGuardian workspace.
Navigate to Settings > Workspace > Integrations.
Click on Configure for GitHub.
Click on Install to start the GitHub app installation process (you will then be redirected to GitHub).
Authenticate on GitHub if you are not already logged in.
Choose where to install the GitHub app (either for your personal GitHub account or for the GitHub organization of which you are an admin)
Choose your preferred installation mode: All repositories or Only select repositories.
All repositories: GitGuardian will be installed on all existing repositories. New repositories will be integrated to GitGuardian automatically.
Only select repositories: GitGuardian will only be installed on the repositories you select. New repositories will not automatically be integrated with GitGuardian - the installation process will need to be run again in order to integrate new repositories.
We recommend choosing All repositories since you can then manually deselect these via the GitGuardian dashboard.
Follow the prompts and your chosen GitHub repositories will be added to your workspace.
If you are using a self-hosted GitGuardian instance, you must first create a dedicated GitHub App so that you own the entire data stream. GitGuardian handles it for you programmatically via GitHub manifest. This will ensure that your GitHub App is created with all the appropriate rights.
- Navigate to Settings > Workspace > Integrations.
- Click on Configure for GitHub.
- Click on Install to start the GitHub app creation and installation process.
- Choose a name and validate the GitHub App creation.
- Once the GitHub app is created, you can now follow the SAAS installation steps from step 5 above and choose the GitHub organizations to integrate with GitGuardian.
WARNING: the GitHub App belongs to the user who created it. We recommend that you transfer the ownership to an organization in case the user is later deactivated.
IMPORTANT: GitGuardian cannot monitor repositories whose owner (user or organization) has not installed the GitHub App.
You can add new organizations or repositories by clicking on add another on either the list of integrations page or the GitHub integration page.
You can also re-configure a previously installed personal GitHub account / GitHub organization and change the installation mode to All repositories or Only select repositories.
Once you have set up your GitHub integration, you can configure which repositories to monitor in the GitHub settings section of your workspace.
If you unselect a repository from your monitored perimeter:
- GitGuardian will no longer fetch the content of its commits, and therefore alerts won't be raised for this repository.
- The GitGuardian GitHub app will remain installed on this repository, therefore you can easily turn the monitoring back on.
GitHub Check Runs will be created on GitHub pull requests on repositories monitored by GitGuardian This allows the individual developer to be notified about an incident detected by GitGuardian directly through the GitHub interface, and hence enable them to remediate immediately - before the commit is merged to your collaborative branches.
As a Manager, you can decide to turn the GitHub Check Runs On or Off for the monitored repositories directly in your GitHub settings page.
As a Manager, you can customize the remediation guidelines. These guidelines will be displayed in the GitHub interface.
If you have integrated both GitHub.com and GitHub Enterprise, you will have two different check runs settings.