Configure access
There are two ways to configure repository access for GitHub Enterprise Server:GitHub App (recommended)
This will register a GitHub App on your server. You will be redirected to
your instance to create it.
This flow must be completed by a GitHub organization owner.
Personal Access Token
Create a personal access token that can be used to access repositories for white-box pentests.
Configure GitHub App
Open Integrations page
In Hacktron, go to Integrations and click Connect under GitHub Enterprise Server.

Initiate GitHub App installation
Enter your server base URL, e.g.
https://github.example.com, and the organization name.Sign in to your server (if required)
If GitHub prompts you to sign in, enter your GitHub login credentials as you normally would.
Register Hacktron as a new GitHub App
GitHub will prompt you to create a new GitHub App. Give it a descriptive name (
Click Create GitHub App. This will create a new GitHub App with the required permissions.
hacktron-app by default).
Install the GitHub App
Your browser will now redirect you to install the app you just registered.
Select the repositories you want to grant access to, then click Install.

Hacktron requests the following permissions:
- Read access to code, members, and metadata
- Read and write access to checks, issues, and pull requests
Configure Personal Access Token
Go to the Personal Access Tokens page
Go to
http://<your-server>/settings/personal-access-tokens/new, or click on your avatar on the top right and select “Settings”,
then “Developer settings”, then “Personal access tokens”.Create a new personal access token
Give the token a descriptive name, e.g. “Hacktron”.Select the repositories you want to grant access to.Select the following permissions:Click “Create token”.Copy the token and save it in a secure location.
- Read-only access to code
- Read-only access to metadata
This is required for running white-box pentests.
