Send GitHub events to Chronosphere

To send GitHub events to Chronosphere, create a webhook within GitHub and include your API key to authenticate with Chronosphere. For more information, refer to webhook events and payloads (opens in a new tab) in the GitHub documentation.

Obtain an API token

Before sending events from GitHub, contact Chronosphere Support to obtain an API token for use with authenticating your third-party app with Chronosphere.

This API token differs from an API token that's generated when creating a service account.

Create a GitHub webhook

To send GitHub events to Chronosphere:

  1. In GitHub, open the repository you want to configure a webhook for.

  2. Click Settings.

  3. Under Code and automation, click Webhooks.

  4. In the Add webhook window, in the Payload URL field, enter https://ADDRESS.chronosphere.io/api/v1/data/events/receiver/github

    Replace ADDRESS with your company name prefixed to your Chronosphere instance that ends in .chronosphere.io. For example, MY_COMPANY.chronosphere.io.

  5. Select application/json as the Content type.

  6. In the Secret field, enter the API token you obtained from Chronosphere Support.

  7. Choose Let me select individual events, and then select Deployment and Deployment Status as the events to trigger the webhook.

  8. Save your webhook.