GitHub Enterprise Setup

For GitHub Enterprise Server and GitHub Enterprise Cloud users

If your organization uses GitHub Enterprise Server (self-hosted) or GitHub Enterprise Cloud with specific security requirements, you’ll need to create a custom GitHub App within your enterprise environment to integrate with Promptless.

This setup is required for GitHub Enterprise Server instances and GitHub Enterprise Cloud organizations that don’t allow third-party GitHub Apps. For standard GitHub.com organizations, use the standard GitHub integration instead.

Prerequisites

  • GitHub Enterprise admin access to create and configure GitHub Apps
  • Network access to Promptless endpoints (see IP whitelisting section)
  • Ability to generate and securely store private keys and client secrets

Step 1: Register New GitHub App

  1. Navigate to your GitHub Enterprise admin settings
  2. Go to “GitHub Apps” and click “New GitHub App”
  3. Fill in the basic app information:
GitHub Enterprise App Registration

Required App Details

Fill in the following fields in your GitHub App configuration:

  • GitHub App name (required): Enter a descriptive name like “Promptless Enterprise” or “Promptless (Your Company Name)”
  • Description: Use: “Promptless keeps your technical guides up-to-date using AI.”
  • Homepage URL (required): https://gopromptless.ai

Step 2: Configure Authentication URLs

Set up the callback and redirect URLs for proper authentication flow:

GitHub Enterprise Callback URL Configuration

Authentication Configuration

Configure the following URLs in your GitHub App settings:

  • Callback URL (required): https://app.gopromptless.ai/integrations
  • Setup URL (Post installation) (required): https://app.gopromptless.ai/integrations/github-redirect
GitHub Enterprise Post Installation Setup

Make sure to check “Redirect on update” to ensure users are redirected to the setup URL after installations are updated (e.g., repositories added/removed).

Step 3: Configure Webhook Settings

Set up webhooks to enable real-time communication between GitHub Enterprise and Promptless:

GitHub Enterprise Webhook Configuration

Webhook Configuration

Configure the following webhook settings in your GitHub App:

  • Webhook URL (required): https://api.gopromptless.ai/integrations/github/events
  • Webhook secret (optional): Leave this field empty or generate a secure secret if required by your security policies
  • SSL verification (required): Enable SSL verification (recommended for security)

Step 4: Configure Repository Permissions

Promptless requires specific repository permissions to function properly. Configure these permissions in your GitHub App settings:

GitHub Enterprise Repository Permissions Overview

Required Repository Permissions

Configure the following permissions for your GitHub App:

Pull Requests - Read and Write

GitHub Enterprise Pull Requests Permission

This permission allows Promptless to:

  • Read pull request content and metadata
  • Create documentation update pull requests
  • Add comments to pull requests for feedback

Contents - Read and Write

GitHub Enterprise Contents Permission

This permission allows Promptless to:

  • Read repository files and documentation
  • Create and update documentation files
  • Access repository structure and content

Commit Statuses - Read Only

GitHub Enterprise Commit Statuses Permission

This permission allows Promptless to:

  • Read commit status information
  • Understand the state of pull requests and commits

Webhooks - Read and Write

GitHub Enterprise Webhooks Permission

This permission allows Promptless to:

  • Manage webhook configurations
  • Receive real-time notifications of repository events

Step 5: Configure Webhook Events

Select the specific events that should trigger Promptless documentation updates:

GitHub Enterprise Webhook Events

Required Webhook Events

Select the following events to ensure Promptless receives all necessary notifications:

  • Pull Request - Triggers when pull requests are opened, updated, or closed
  • Pull Request Review - Triggers when pull request reviews are submitted
  • Pull Request Review Thread - Triggers when review threads are created or updated
  • Pull Request Review Comment - Triggers when individual review comments are made
  • Push - Triggers when code is pushed to repositories
  • Release - Triggers when releases are created or updated
  • Repository - Triggers when repository settings change

Step 6: IP Whitelisting

Add Promptless IP addresses to your network whitelist to ensure proper connectivity:

If your GitHub Enterprise instance is behind a firewall or uses IP restrictions, you must whitelist these IP addresses for Promptless to function properly.

Promptless IP Addresses

Add the following IP addresses to your whitelist:

3.143.177.103
3.131.121.250
3.13.184.175
18.223.104.40

These IP addresses are required for webhook delivery and API communication. Failure to whitelist them will prevent Promptless from receiving GitHub events and accessing your repositories.

The primary egress IP address for Promptless infrastructure is 3.143.177.103 (NAT gateway). This is the IP address that will appear in your GitHub Enterprise logs for API requests.

Step 7: Generate Credentials

After configuring all settings, generate the necessary credentials:

1

Generate Private Key

  1. Scroll to the bottom of the GitHub App settings page
  2. Click “Generate a private key”
  3. Download and securely store the .pem file
  4. This key will be needed for Promptless configuration
2

Generate Client Secret

  1. In the “Client secrets” section, click “Generate a new client secret”
  2. Copy and securely store the generated secret
  3. This secret will be needed for OAuth authentication
3

Note the App ID

  1. Find the “App ID” at the top of the settings page
  2. Record this ID as it will be needed for configuration

Store the private key and client secret in a secure location. These credentials provide access to your GitHub Enterprise instance and should be treated as highly sensitive information.

Step 8: Install the App

  1. After creating the GitHub App, install it to your organization or specific repositories
  2. Choose which repositories Promptless should have access to
  3. Complete the installation process

Step 9: Configure Promptless

Contact the Promptless team at hello@gopromptless.ai with the following information to complete your GitHub Enterprise integration:

  • GitHub Enterprise URL: Your GitHub Enterprise instance URL
  • App ID: The numeric ID of your created GitHub App
  • Client ID: Found in your GitHub App settings
  • Client Secret: The secret you generated in Step 7
  • Private Key: The .pem file you downloaded in Step 7
  • Installation ID: Provided after installing the app to your organization
  • Send credentials through a secure channel (encrypted email or secure file sharing)
  • Consider using your organization’s preferred method for sharing sensitive information
  • The Promptless team will securely configure your integration and delete any temporary credential storage

Verification and Testing

Once configured by the Promptless team:

  1. Log into your Promptless dashboard at app.gopromptless.ai
  2. Navigate to the integrations page
  3. Verify that GitHub Enterprise appears as connected
  4. Create a test project to ensure proper functionality
  5. Test with a sample pull request to verify webhook delivery

Troubleshooting

  • Verify IP addresses are whitelisted
  • Check that the webhook URL is accessible from your GitHub Enterprise instance
  • Ensure SSL verification settings match your security requirements
  • Review GitHub Enterprise logs for webhook delivery errors
  • Verify all URLs are correctly configured
  • Ensure the private key and client secret are valid
  • Check that the App ID matches your created GitHub App
  • Confirm the installation was completed successfully
  • Review that all required repository permissions are granted
  • Ensure the app is installed to the correct repositories
  • Verify that webhook events are properly configured
  • Check that users have appropriate access to repositories

Support

For assistance with GitHub Enterprise setup, contact:

The Promptless team can provide guidance on configuration, troubleshooting, and best practices for GitHub Enterprise integrations.