Bitbucket
Bitbucket Integration
Pensar Console integrates with Bitbucket Cloud to scan and secure your repositories. The integration uses OAuth to provide secure access to your Bitbucket workspace.
Prerequisites
Before connecting Bitbucket, ensure you have:
- A Bitbucket account with access to the repositories you want to scan
- Admin access to the Bitbucket workspace you want to connect
Connecting Bitbucket
From Workspace Settings
- Navigate to Settings → Integrations in your Pensar Console workspace
- Expand the Bitbucket section
- Click Connect Bitbucket
- You’ll be redirected to Bitbucket’s authorization page
- Review the permissions and click Grant access
- Select the Bitbucket workspace you want to connect
- You’ll be automatically redirected back to Pensar Console
From Onboarding
When creating a new workspace, you can connect Bitbucket during the onboarding process by clicking Connect your Bitbucket workspace and following the same steps.
Pensar will automatically set up webhooks in your Bitbucket workspace to receive notifications about repository events.
Permissions
When you authorize Pensar, the following permissions are granted:
Adding Repositories
After connecting Bitbucket:
- Go to Projects → New Project in Pensar Console
- Your Bitbucket repositories will appear in the repository list
- Select a repository and configure your project settings
- Click Create Project to start scanning
Managing the Integration
Viewing Connection Status
- Navigate to Settings → Integrations
- Expand the Bitbucket section
- If connected, you’ll see a confirmation with your workspace name
Disconnecting Bitbucket
To remove the Bitbucket integration:
- Navigate to Settings → Integrations
- Expand the Bitbucket section
- Click Disconnect Bitbucket
Disconnecting Bitbucket will prevent Pensar from scanning Bitbucket repositories. Any projects using Bitbucket repositories will no longer be able to perform scans.
Troubleshooting
Authorization Failed
If the OAuth authorization fails:
- Ensure you have admin access to the Bitbucket workspace
- Try clearing your browser cache and cookies
- Attempt the connection again from Settings → Integrations
Repositories Not Appearing
If your repositories don’t appear in the project creation list:
- Verify you have at least read access to the repositories in Bitbucket
- Check that the correct workspace is connected
- Try refreshing the page
Webhook Issues
If you’re not receiving real-time updates:
- Navigate to your Bitbucket workspace settings
- Go to Webhooks
- Verify a Pensar webhook exists and is active
- If the webhook is missing, disconnect and reconnect the integration
Need Help?
If you encounter issues setting up your Bitbucket integration, please contact our support team at team@pensarai.com.