Skip to main content

On Premises Github

Prerequisites

The server IP where the agent runs must be whitelisted in Github Cloud/Server.

Step 1: Generate an API Token

  1. Go to Settings > Developer settings in Github

GitHub user Settings menu leading to Developer settings

GitHub Developer settings page

  1. Navigate to Tokens (classic) under Personal access tokens
  2. Select Generate new token (classic) from the dropdown

Personal access tokens: Generate new token (classic)

  1. Name the token (e.g., dd-token) and set expiration to No expiration
    • Note: Expired tokens require re-integration

New personal access token: name and expiration

  1. Enable these scopes: repo, read:package, read:org, read:repo_hook, user, read:discussion, read:project

Personal access token repository and package scopes

Personal access token org, hook, user, and project scopes

  1. Click Generate token and copy it

Step 2: Install On-Premises Agent

Refer to the On-Premises Agent Installation Guide for setup instructions.

Once completed, the GitHub integration is successfully established.