Enterprise Software Supply Chain Manager (ESSCM)IntegrationsSource Code (SCM)
GitLab
Connect GitLab repositories to generate SBOMs
GitLab Integration
Connect your GitLab repositories (cloud or self-hosted) to Safeguard for SBOM generation and vulnerability scanning.
Prerequisites
- A GitLab account (gitlab.com or self-hosted instance)
- For private repositories: Personal Access Token
Public Repositories
Step 1: Navigate to Integrations
Go to Integrations from the sidebar and click Connect on the GitLab card.
Step 2: Enter Repository URL
- Select the Public tab
- Enter a Name for this configuration
- Optionally add a Description
- Enter the public GitLab repository URL (e.g.,
https://gitlab.com/gitlab-org/gitlab) - Click Add to add the URL to the list
Step 3: Review & Connect
- Review the added repository URLs
- Click Next to proceed
- Configure Branch/Tag, Project Name, and Version for each repository
- Click Connect to complete
Private Repositories
Step 1: Navigate to Integrations
Go to Integrations from the sidebar and click Connect on the GitLab card.
Step 2: Enter Credentials
- Select the Private tab
- Enter a Name for this configuration
- Optionally add a Description
- Enter the GitLab URL (for self-hosted instances, e.g.,
https://gitlab.yourcompany.com) - Enter your Personal Access Token
- Click Verify Credentials
Step 3: Select Repositories
- Once credentials are verified, browse available groups/projects
- Select repositories to scan
- Configure Branch/Tag, Project Name, and Version
- Click Connect to complete
Creating a Personal Access Token
For GitLab.com
- Go to gitlab.com and sign in
- Click your profile picture then Edit profile
- In the left sidebar, click Access Tokens
- Click Add new token
- Enter a token name (e.g., "Safeguard Integration")
- Set an expiration date
- Select the required scopes:
Required Scopes
| Scope | Description |
|---|---|
read_api | Read access to the API |
read_repository | Read access to repositories |
- Click Create personal access token
- Copy the token immediately (it won't be shown again)
For Self-Hosted GitLab
- Navigate to your GitLab instance
- Go to User Settings then Access Tokens
- Follow the same process as GitLab.com
Self-Hosted GitLab Configuration
For self-hosted GitLab instances:
- Ensure your GitLab instance is accessible from Safeguard
- Use the full URL including protocol (e.g.,
https://gitlab.yourcompany.com) - If using self-signed certificates, contact support for configuration options
Network Requirements
| Requirement | Details |
|---|---|
| Protocol | HTTPS (recommended) or HTTP |
| Port | 443 (HTTPS) or 80 (HTTP) or custom |
| Firewall | Allow outbound connections from Safeguard |
Troubleshooting
"Credentials verification failed"
- Verify the Personal Access Token has the required scopes
- Ensure the token has not expired
- For self-hosted: check the GitLab URL is correct and accessible
"SSL Certificate Error"
- For self-hosted instances with self-signed certificates, contact support
- Ensure the certificate chain is complete
"Project not found"
- Verify you have access to the project in GitLab
- Ensure the token has
read_repositoryscope