webhooks.gitlab() checks the secret token GitLab sends in x-gitlab-token on every request.
/trigger/gitlab.ts
header.x-gitlab-event.
Set up GitLab
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - Choose Generate secret on the Trigger.dev endpoint and copy the value.
- In the GitLab project or group, go to Settings > Webhooks and add a webhook with the webhook URL. Paste the secret into Secret token and select the triggers your subscribers need. GitLab sends the event name in the
x-gitlab-eventheader. - Send a test event from GitLab, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

