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