Architecture (AWS Lambda)
Please see the example of Terraform Configuration too.
GitHub Webhook has a timeout (ref).
GitHub expects that integrations respond within 10 seconds of receiving the webhook payload, as seen in the docs.
So gha-trigger has to be invoked asynchronouly.
We use Amazon API Gateway to invoke AWS Lambda asynchronously. We don't use AWS Lambda Function URLs, because this doesn't support invoking AWS Lambda asynchronously.