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);