Skip to main content

Supported Data Models

Create a Connection for GitHub Advanced Security

1

1

Create a GitHub connection

  1. With Leen API Key and Customer’s Org ID, make an API request to create a new GitHub Connection.
More information can be found on the API Reference page.
  {
    "vendor": "GITHUB"
  }
The response will look like this:
  {
      "id": "c54de187-df62-4e95-b10f-0ab53b095d9d",
      "vendor": "GITHUB",
      "refresh_interval_secs": 14400,
      "timeout_secs": 1800,
      "organization_id": "fbd8b095-3c39-4137-9478-c32308444202",
      "oauth2_authorize_url": "https://github.com/apps/.../installations/new?....."
  }

Onboarding GitHub Advanced Security

Follow the steps below to onboard your environment to our GitHub Advanced Security integration.
1

Granting permission to Leen app for GitHub

  1. Open the oauth2_authorize_url from the connection creation step.
  2. Select the account/organization for which the github app needs to be installed for access to GitHub Advanced Security Alerts. GitHub-select-org
  3. Select the repositories that need to be authorized for the access. (Selection possible for all repositories or specific ones as well.) GitHub-select-repos
  4. Click Install and Authorize button to complete the GitHub app installation.
  5. The page will be redirected to Leen on a successful authorization. GitHub-auth-success
I