GitHub Integration
Clipron AI provides seamless integration with GitHub, allowing you to analyze both public and private repositories directly from the platform. This guide covers setup, configuration, and best practices for GitHub integration.Overview
Repository Analysis
Analyze entire repositories or specific branches with one click
Automated Scanning
Set up automated security scans on commits and pull requests
Private Repository Access
Securely access your private repositories with OAuth
CI/CD Integration
Integrate security analysis into your development workflow
Setting Up GitHub Integration
Step 1: Connect Your GitHub Account
1
Navigate to Integrations
Go to your Clipron AI dashboard and click on “Integrations” in the sidebar
2
Connect GitHub
Click the “Connect GitHub” button to start the OAuth flow
3
Authorize Clipron AI
You’ll be redirected to GitHub to authorize Clipron AI. Grant the following permissions:
- Read access to your profile and email
- Read access to your repositories (public and private)
- Write access to commit statuses (for CI/CD integration)
4
Select Repositories
Choose which repositories Clipron AI can access:
- All repositories: Grant access to all current and future repositories
- Selected repositories: Choose specific repositories to analyze
Step 2: Repository Permissions
Public Repositories
Public Repositories
No additional setup required
- Accessible with any GitHub account
- Can be analyzed without OAuth connection
- Limited to public repository analysis only
Private Repositories
Private Repositories
Requires GitHub OAuth connection
- Must connect your GitHub account
- Requires Pro subscription or higher
- Full access to private repository content
Organization Repositories
Organization Repositories
Additional organization approval may be required
- Organization owners may need to approve the integration
- Some organizations have third-party app restrictions
- Contact your organization admin if access is denied
Analyzing Repositories
Quick Repository Analysis
- From Dashboard
- Direct URL
- Via API
- Click “New Analysis” on your dashboard
- Select “GitHub Repository” tab
- Choose from your connected repositories
- Select branch (defaults to main/master)
- Choose analysis type and start scan
Advanced Repository Options
Branch Selection
Branch Selection
Analyze specific branches or commits
- Default branch: Usually main or master
- Feature branches: Analyze development branches
- Specific commits: Analyze code at specific commit SHA
- Pull requests: Analyze changes in pull requests
Directory Filtering
Directory Filtering
Focus analysis on specific directories
- Include patterns: Only analyze matching paths
- Exclude patterns: Skip certain directories or files
- File type filtering: Analyze only specific file types
Analysis Scope
Analysis Scope
Control what gets analyzed
- Production code only: Exclude tests and documentation
- Include tests: Analyze test files for security issues
- Configuration files: Include config files in analysis
- Dependencies: Analyze third-party dependencies
Automated Security Scanning
GitHub Actions Integration
Create a GitHub Actions workflow to automatically scan your repository:Webhook Configuration
Set up webhooks to trigger analysis on repository events:1
Configure Webhook in Clipron AI
- Go to Settings → Webhooks
- Click “Add GitHub Webhook”
- Select trigger events (push, pull_request, release)
- Copy the webhook URL
2
Add Webhook to GitHub
- Go to your repository settings on GitHub
- Click “Webhooks” → “Add webhook”
- Paste the Clipron AI webhook URL
- Select “application/json” content type
- Choose events: Push, Pull requests, Releases
3
Test Webhook
- Make a test commit to your repository
- Check Clipron AI dashboard for automatic analysis
- Verify webhook delivery in GitHub settings
Repository Management
Connected Repositories
View Connected Repositories
View Connected Repositories
Manage your repository connections
- View all connected repositories
- See last analysis date and results
- Check repository permissions
- Update access settings
Repository Settings
Repository Settings
Configure per-repository settings
- Auto-scan: Enable automatic scanning on commits
- Scan schedule: Set up periodic scans
- Notification preferences: Configure alerts
- Analysis defaults: Set default analysis type
Access Management
Access Management
Control repository access
- Revoke access: Remove Clipron AI access to specific repositories
- Update permissions: Modify granted permissions
- Organization approval: Handle organization-level permissions
- Go to Settings → Integrations → GitHub
- Click “Manage Repository Access”
- Uncheck repositories to revoke access
- Or revoke access entirely from GitHub settings
Best Practices
Security Considerations
Token Security
Protect your API tokens
- Store API keys in GitHub Secrets
- Use repository-specific tokens when possible
- Rotate tokens regularly
- Never commit tokens to code
Repository Permissions
Minimize access scope
- Grant access only to repositories that need scanning
- Use organization-level controls
- Review permissions regularly
- Monitor access logs
Performance Optimization
Efficient Scanning
Efficient Scanning
Optimize scan performance and costs
- Use
.clipronignorefile to exclude unnecessary files - Scan only changed files in pull requests
- Use appropriate analysis types for different scenarios
- Schedule comprehensive scans during off-peak hours
.clipronignore:CI/CD Integration
CI/CD Integration
Integrate efficiently with your workflow
- Use quick scans for pull request checks
- Run comprehensive scans on main branch
- Cache analysis results when possible
- Set appropriate failure thresholds
Troubleshooting
Common Issues
Repository Access Denied
Repository Access Denied
Solutions for access issues
- Verify GitHub OAuth connection is active
- Check repository permissions in GitHub settings
- Ensure organization has approved third-party apps
- Re-authorize Clipron AI if permissions changed
Analysis Fails
Analysis Fails
Debugging failed analyses
- Check repository size limits (max 1GB)
- Verify branch/commit exists
- Review excluded patterns for over-exclusion
- Check API rate limits and quotas
Webhook Issues
Webhook Issues
Fixing webhook problems
- Verify webhook URL is correct
- Check webhook secret configuration
- Review GitHub webhook delivery logs
- Test webhook manually from GitHub settings
Getting Help
Documentation
Check our troubleshooting guide for detailed solutions
Support
Contact [email protected] with your repository URL and error details