Prerequisites
- Create a GitLab Connection with Secret Scanning permissions
Create a GitLab data source in Infisical
1
Navigate to your Secret Scanning Project’s Dashboard and select the Add Data Source button.

2
Select the GitLab option.

3
Configure which workspace and repositories you would like to scan. Then select Next.

- GitLab Connection - the connection that has access to the repositories you want to scan.
- Scope - the GitLab scope to scan secrets in.
- Project - scan an individual GitLab project.
- Group - scan one or more projects belonging to a GitLab group.
- Scan Repositories - when using Group Scope, select which repositories you would like to scan.
- All Repositories - Infisical will scan all repositories associated with your connection.
- Select Repositories - Infisical will scan the selected repositories.
- Auto-Scan Enabled - whether Infisical should automatically perform a scan when a push is made to configured repositories.
4
Give your data source a name and description (optional). Then select Next.

- Name - the name of the data source. Must be slug-friendly.
- Description (optional) - a description of this data source.
5
Review your data source, then select Create Data Source.

6
Your GitLab Data Source is now available and will begin a historical scan if Auto-Scan is enabled.

7
You can view repositories and scan results by selecting your data source.

8
In addition, you can review any findings from the Findings Page.
