GitLab Webhook callback
Receive GitLab Push/Merge Request events, automatically extract changed SQL and trigger an audit.
GitLab configuration:
- Create an SCM monitoring configuration in the PawSQL admin console to obtain the webhookToken
- In GitLab project → Settings → Webhooks, fill in the URL:
{PAWSQL_SERVER}/api/v1/integrations/gitlab/webhook/{webhookToken} - Check Push events and Merge request events
Expected HTTP Headers:
X-Gitlab-Event: event type (push / merge_request)X-Gitlab-Token: secret token (optional)X-Gitlab-Event-UUID: unique event identifier
Request Body: GitLab Webhook Payload (JSON format), see the GitLab Webhook documentation
POST
Error
Path Parameters
Webhook verification token
Body
application/json
GitLab Webhook Payload, format per the official GitLab documentation
Response
200 - text/plain
Webhook processing result
The response is of type string.