GitLab
GitLab Integration
Pensar Console integrates with GitLab.com to scan and secure your repositories. The integration uses OAuth — you authorize Pensar with a single click and there are no personal access tokens to create or rotate.
The GitLab integration connects to gitlab.com. Self-hosted GitLab instances are not currently supported.
Prerequisites
Before connecting GitLab, ensure you have:
- A GitLab.com account with access to the repositories you want to scan
- Permission to authorize OAuth applications for your account
Connecting GitLab
From Workspace Settings
- Navigate to Settings → Integrations → Source control in your Pensar Console workspace
- Find the GitLab row
- Click Connect
- You’ll be redirected to GitLab’s authorization page (
gitlab.com/oauth/authorize) - Review the requested access and click Authorize
- You’ll be automatically redirected back to Pensar Console
From Onboarding
When creating a new workspace, you can connect GitLab during the onboarding process by clicking Connect your GitLab account and following the same steps.
Permissions
When you authorize Pensar, the OAuth flow requests the following scopes:
Adding Repositories
After connecting GitLab, attach repositories directly to your workspace:
- Go to Attack Surface → Repositories in Pensar Console
- Click Add repository
- Your GitLab projects appear in the picker — select one or more
- Click Attach & continue
Each repository you attach is connected to the workspace and recon / attack-surface analysis launches automatically — there is no separate project to create.
Managing the Integration
Viewing Connection Status
- Navigate to Settings → Integrations → Source control
- Find the GitLab row
- If connected, you’ll see the GitLab username Pensar is connected as, along with the option to unlink
Reconnecting
If your connection ever stops working, click Unlink in the GitLab row and then Connect again to re-run the OAuth flow.
Unlinking GitLab
To remove the GitLab integration:
- Navigate to Settings → Integrations → Source control
- Find the GitLab row
- Click Unlink
Unlinking GitLab will prevent Pensar from scanning GitLab repositories. Any repositories attached to your workspace from GitLab will no longer be able to perform scans.
Troubleshooting
Authorization Failed
If the OAuth authorization fails:
- Ensure you’re signed in to the correct GitLab.com account
- Try clearing your browser cache and cookies
- Attempt the connection again from Settings → Integrations → Source control
Repositories Not Appearing
If your repositories don’t appear in the Add repository picker:
- Verify you have at least Developer access to the repositories in GitLab
- Try unlinking and reconnecting GitLab to refresh access
- Refresh the repository list
Need Help?
If you encounter issues setting up your GitLab integration, please contact our support team at team@pensar.dev.