GitHub
Deductive supports GitHub in two ways:GitHubfor GitHub App-based access ongithub.comGitHub PATfor Personal Access Token-based access ongithub.comor GitHub Enterprise Server
If you use GitHub.com
If your code is hosted ongithub.com, the recommended setup is to install the Deductive GitHub App on your organization or repository.
You do not need to create and paste a Personal Access Token for this setup.
How it works
- Install the Deductive GitHub App
- Approve access to the organization or repositories you want Deductive to read
- Deductive uses the app installation to access your code, pull requests, and commit history
When to use this
Use this option if your repositories live on standard GitHub Cloud atgithub.com.
If you want to connect with a Personal Access Token
UseGitHub PAT when:
- Your repositories are hosted on a self-managed GitHub Enterprise Server instance
- You want to use a GitHub Personal Access Token instead of a GitHub App
- You want to connect private repositories using token-based credentials
github.com- Self-hosted GitHub Enterprise Server hostnames
What you need
Provide:- Your GitHub hostname, such as
github.comorgithub.yourcompany.com - A Personal Access Token with
reposcope
https:// or a trailing slash in the hostname field.
How to set it up
- Open
GitHub PATfrom integrations page - Enter your GitHub hostname
- Create a Personal Access Token in GitHub
- Grant the token
reposcope so Deductive can access private repositories - Paste the token into the
Personal Access Tokenfield - Save the integration
Test connection behavior
The PAT integration includes a test connection flow. When you test the connection, Deductive:- Validates the stored hostname and token
- Connects to the configured GitHub instance
- Lists repositories accessible to that token
- Shows whether the connection succeeded and which repositories were found
Which one should I choose?
- Use
GitHubif you want the standard GitHub App setup ongithub.com - Use
GitHub PATif you want PAT-based access - Use
GitHub PATfor self-hosted GitHub Enterprise Server
Summary
There are only two real cases:github.comwith GitHub App: useGitHubgithub.comor self-hosted GitHub with a PAT: useGitHub PAT
How to create a Personal Access Token
- Log in to your GitHub instance
- Go to Settings > Developer settings > Personal access tokens
- Click
Generate new token - Grant the token
reposcope - Copy the generated token
- Paste it into Deductive
Field Reference
The following fields are used when configuring this integration:- GitHub Hostname (
hostname) - Personal Access Token (
pat)