Skip to main content

GitHub

Visualize GitHub users, teams, repositories, pull requests, issues, code scanning alerts and more. Map GitHub users to employees and training, and monitor software development activities, installations of GitHub apps, and outside collaborators.

Installation​

This integration ingests data from a single GitHub organization. You must have an organization in your GitHub account before configuring the integration; personal (user) accounts are not supported. Learn more about GitHub organizations.

info

GitHub Cloud & GitHub Enterprise Server Versions 3.3.3 and above have been verified as compatible with this integration. Other versions of GitHub Enterprise may work, but are not fully supported.

The integration supports four authentication methods, selected when you create the instance:

  • GitHub Cloud (App) - Recommended — installs the JupiterOne-managed GitHub App into your organization. For long-lived organization integrations, GitHub recommends a GitHub App over a personal access token. Learn more about GitHub Apps and tokens.
  • GitHub Cloud (PAT) — a personal access token (classic) issued by an Enterprise Owner. Choose this method if your enterprise has SAML Single Sign-On (SSO) configured at the enterprise level.
  • GitHub Cloud (Fine-grained PAT) — a fine-grained personal access token scoped to a single organization. Enterprise-level data (IP allow list and enterprise SAML identities) is not available with this method.
  • GitHub Enterprise Server — a GitHub App you create on your self-hosted GitHub Enterprise Server.

Prerequisites​

  • A GitHub organization to ingest. The integration rejects installations against non-organization accounts.
  • For the GitHub Cloud (App) method, permission to install a GitHub App into your organization. The managed app requests read-only permissions to support ingestion of entities and relationships.
  • For the GitHub Cloud (PAT) method, a personal access token (classic) issued by an Enterprise Owner, and an organization that uses enterprise-level SAML SSO. An organization policy can block classic PAT access and cause the integration to fail with a 403.
  • For the GitHub Cloud (Fine-grained PAT) method, a fine-grained token whose resource owner is the organization being ingested, with read-only permissions to the organization's resources.
  • For the GitHub Enterprise Server method, a GitHub App you create on your server, from which you supply the Hostname, App ID, App Installation ID, and Private Key.

Create the credential​

GitHub Cloud (App)​

After you create the instance in JupiterOne, you are redirected to GitHub to install the JupiterOne GitHub App into your organization. The App's App ID, Private Key, and App Installation ID are supplied by the managed environment, so no credential fields appear for this method.

GitHub Cloud (PAT)​

Create a personal access token (classic):

  1. In GitHub, click your profile picture, then navigate to Settings > Developer settings > Personal access tokens > Tokens (classic).
  2. Click Generate new token (classic).
  3. Set a Note, an Expiration, and select the scopes the integration requires.
  4. Click Generate token and copy the value.
  5. If your organization uses SAML SSO, authorize the token for SSO.
note

The token must be issued by an Enterprise Owner. You also need your Enterprise Slug — the short identifier in the URL https://github.com/enterprises/<your-slug> — and your Organization Name, found in the URL https://github.com/<your-organization>.

GitHub Cloud (Fine-grained PAT)​

Create a fine-grained personal access token:

  1. In GitHub, click your profile picture, then navigate to Settings > Developer settings > Personal access tokens > Fine-grained tokens.
  2. Click Generate new token.
  3. Set a Token name and an Expiration.
  4. Set Resource owner to the organization being ingested.
  5. Select the Repository access and set Permissions to read-only for the organization's resources.
  6. Click Generate token and copy the value.
note

You also need your Organization Name, found in the URL https://github.com/<your-organization>.

GitHub Enterprise Server​

Create a GitHub App on your GitHub Enterprise Server, install it into your organization, and generate a private key. You supply the Hostname, App ID, App Installation ID, and Private Key when you create the instance.

Configuration in JupiterOne​

To install the GitHub integration in JupiterOne, navigate to the Integrations tab in JupiterOne and select GitHub. Click New Instance to begin configuring the integration.

note

This integration limits the ingestion of pull requests and issues to the 500 most recently created or modified since the last execution.

Creating an instance requires the following:

  • The Account Name used to identify the GitHub account in JupiterOne. Ingested entities have this value stored in tag.AccountName when the AccountName toggle is enabled.
  • A Description to assist in identifying the integration instance, if desired.
  • A Polling Interval that fits your monitoring needs. You may leave this as DISABLED and manually execute the integration.
  • The authentication method, along with the credentials it requires:
    • GitHub Cloud (App): no credential fields; you install the managed app on GitHub after creating the instance.
    • GitHub Cloud (PAT): the Enterprise Slug, the Organization Name, and the Personal Access Token (classic) issued by an Enterprise Owner.
    • GitHub Cloud (Fine-grained PAT): the Organization Name and the Fine-grained Personal Access Token whose resource owner is the organization being ingested.
    • GitHub Enterprise Server: the Hostname, App ID, App Installation ID, and Private Key.

For the GitHub Cloud (App) method, after you create the instance you are re-directed to GitHub to install the JupiterOne GitHub App. The app requests read-only permissions to support ingestion of entities and relationships.

View GitHub permissions
Note

The Secrets API does not reveal the values of Secrets, only their names and creation dates.

Repository Permissions
  • Actions: Read-only
  • Administration: Read-only
  • Contents: Read-only (Only CODEOWNERS file is read when that step is enabled)
  • Dependabot alerts: Read-only
  • Discussions: Read-only
  • Environments: Read-only
  • Issues: Read-only (enables both Issues and private-repo PRs)
  • Metadata: Read-only
  • Pages: Read-only
  • Pull requests: Read-only
  • Secrets: Read-only
  • Secret scanning alerts: Read-only
  • Webhooks: Read-only
Organization Permissions
  • Administration: Read-only
  • Members: Read-only
  • Secrets: Read-only
  • Events: Read-only
  • Webhooks: Read-only
User Permissions
  • None
info

Data Volume Configuration​

Control how much data is ingested from GitHub to manage storage and processing.

Ingestion Windows​

FieldDescriptionDefaultOptions
Pull Requests Ingestion WindowIngestion window for updated pull requests, in days ago.9090, 180, 275, 365
Issues Ingestion WindowIngestion window for updated issues, in days ago.9090, 180, 275, 365
User Commit Activity WindowIngestion window for user commit activity on the default branch, in days ago. Only applies when the GitHub User Commit Activity ingestion source is enabled.9090, 180, 275, 365

How it affects data volume: Longer windows increase the number of pull requests and issues ingested. The integration limits ingestion to the 500 most recently created or modified items since the last execution.

Data Filtering Options​

FieldDescriptionDefaultOptions
States FilterLimit ingestion to Dependabot alerts with the specified states. Not supported on GitHub Enterprise Server versions below 3.5.OpenOpen, Dismissed, Fixed
Severities FilterLimit ingestion to Dependabot alerts with the specified severities.Critical, High, Moderate, LowCritical, High, Moderate, Low
Ingest Generic Secret AlertsWhen enabled, ingest generic secret alerts, including default secret patterns and generic patterns.Disabled—

How it affects data volume:

  • Dependabot state filtering reduces alerts by excluding dismissed and fixed alerts. By default, only open alerts are ingested.
  • Dependabot severity filtering limits alerts to selected severities. By default, all severity levels are included.
  • Enabling Ingest Generic Secret Alerts increases the volume of secret scanning alerts by including generic patterns.

Hierarchy of data retrieval​

This integration uses many steps to retrieve data. Some of the steps depend on others. If there is a crash or error, it might be helpful to understand the hierarchy of step dependency:

  • The root step is fetch-account. All other steps depend on it.
  • There are four steps that depend only on fetch-account that could be considered primary steps. These are:
    1. fetch-apps
    2. fetch-repos
    3. fetch-users
    4. fetch-teams
  • Other steps logically require multiple primary steps to complete. Examples include:
    • fetch-collaborators
    • fetch-team-members
    • fetch-team-repos
  • Finally, some sophisticated steps require both primary steps and secondary steps before they can execute. For example, fetch-prs needs both fetch-repos and fetch-collaborators in order to properly label reviewers and approvers.

Next steps​

Now that your integration instance has been configured, it will begin running on the polling interval you provided, populating data within JupiterOne. Continue on to our Instance management guide to learn more about working with and editing integration instances.