Skip to main content
To send GitLab events to Palo Alto Networks Cortex XCOR, create a webhook within GitLab and include your API key to authenticate with Cortex XCOR. For more information, refer to Webhooks in the GitLab documentation.

Obtain an API token

Before sending events from GitLab, contact Cortex XCOR Support to obtain an API token to authenticate with Cortex XCOR.
This API token differs from an API token that’s generated when you create a service account.

Create a GitLab webhook

To send GitLab events to Cortex XCOR:
  1. In GitLab, create a webhook scoped to your project or group.
  2. In the URL field, enter https://TENANT.chronosphere.io/api/v1/data/events/receiver/gitlab
  3. In the Secret token field, enter the API token you obtained from Cortex XCOR Support.
  4. In the Trigger section, select the events to trigger the webhook. Cortex XCOR supports only Deployment events and Feature flag events.
    If you choose any events other than Deployment events or Feature flag events, Cortex XCOR drops the related event data, even though the GitLab interface lets you select other event types.
  5. Click Add webhook to create the webhook.