Listen to GitHub webhooks locally via SST.
- Clone this repo
- Install dependencies (
npm i) - Install SST (
npx sst install) - Configure AWS SSO if not already configured. See this guide
- Set your SSO profile name in the
.envfile using.env.exampleas the base - Generate a new webhook secret (
openssl rand -hex 32) - Set your webhook secret as an SST secret (
npx sst secret set WebhookSecret <WEBHOOK_SECRET_VALUE> --stage development) - Start your SST development server (
npx sst dev --stage development) - Create your new webhook on GitHub, providing your new Lambda URL and webhook secret
- Start listening to events locally!