This guide requires administrative access to your GitHub Enterprise Server instance.
Overview
CodeAnt seamlessly integrates with GitHub Enterprise Server to provide intelligent code analysis, automated reviews, and security insights for your private enterprise repositories. This comprehensive guide walks you through the complete setup process.What you’ll need
GitHub Enterprise Admin Access
Administrative privileges to create OAuth Apps and GitHub Apps
CodeAnt Account
Active organization account with setup permissions
Setup
Step 1: Set up OAuth Authentication
Using your administrator account, navigate to your GitHub Enterprise Server settings and create a new OAuth App with these configurations:This OAuth App enables secure user authentication between GitHub Enterprise Server and CodeAnt AI.
CodeAnt OAuth
OAuth application for authenticating with CodeAnt’s intelligent code analysis platform
Save your Client ID and Client Secret immediately - the secret won’t be shown again!
Step 2: Configure GitHub App Integration
Create a GitHub App to enable CodeAnt’s repository access and webhook functionality.GitHub Apps provide more granular permissions and better security than OAuth Apps for repository operations.
- Navigate to Settings → Developer settings → GitHub Apps
- Click New GitHub App
Configure the basic app settings with these details:
Field | Value |
---|---|
GitHub App name | CodeAnt |
Description | GitHub App for CodeAnt |
Homepage URL | https://codeant.ai |
Callback URL | https://app.codeant.ai/ |
Request user authorization (OAuth) during installation | ✓ Enabled |
Where can this GitHub App be installed? | Any account |
- Click Create GitHub App
- Client Secret: Generate a new client secret
- Private Key: Generate and download the PEM file
- Webhook Secret: Generate a secure webhook secret
- Note the App ID and Client ID
- ✅ App ID
- ✅ Client ID
- ✅ Client secret
- ✅ Webhook secret
- ✅ Private key (PEM file)
Step 3: Connect to CodeAnt AI
Now link your GitHub Enterprise Server to CodeAnt AI using the credentials you’ve created.- Navigate to app.codeant.ai
- Select Self-Hosted option
- Choose Self-Hosted GitHub as your provider
- Provide the following information from your GitHub Enterprise setup:
- Base URL: Your GitHub Enterprise Server URL (e.g.,
https://github.yourcompany.com
) - OAuth Client ID: The Client ID from your OAuth App
- OAuth Client Secret: The Client Secret from your OAuth App
- GitHub App ID: The App ID from your GitHub App
- GitHub App Private Key: The Private Key (PEM format) from your GitHub App
- Webhook Secret: The Webhook Secret you generated
- Click Submit to save the configuration
Step 4: Activate Repository Access
Install the CodeAnt GitHub App to grant access to your repositories.- Navigate to your GitHub Enterprise Server settings
- Go to GitHub Apps → CodeAnt
- Click Install App
- Select the repositories you want CodeAnt to analyze
- Click Install
Start with a few test repositories, then expand to your full organization once everything is working smoothly.
Step 5: Finalize Your Setup
Complete the authentication flow to start analyzing your code.- Return to the self-hosted options in CodeAnt AI
- Select Self-Hosted GitHub again
- Click Login and enter your GitHub Enterprise Server base URL when prompted
- You’ll be redirected to your GitHub Enterprise Server for authentication
- After successful authentication, you should see your repositories in CodeAnt AI
Success! Your GitHub Enterprise Server is now connected to CodeAnt AI.