From db13ec5edda15a8fb3436506111f803f1dba0b97 Mon Sep 17 00:00:00 2001 From: Ian Dees Date: Mon, 18 Nov 2024 00:13:07 -0600 Subject: [PATCH] Increase the body size limit for the Github webhook --- api/routes/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/routes/github.js b/api/routes/github.js index 7a1d23f2..1bf2cba6 100644 --- a/api/routes/github.js +++ b/api/routes/github.js @@ -9,7 +9,7 @@ export default async function router(schema, config) { group: 'Github', auth: 'admin', description: 'Callback endpoint for GitHub Webhooks. Should not be called by user functions' - }, bodyparser.raw({ type: '*/*' }), async (req, res) => { + }, bodyparser.raw({ type: '*/*', limit: '500kb' }), async (req, res) => { if (!process.env.GithubSecret) return res.status(400).send('Invalid X-Hub-Signature'); const ci = new CI(config);