Skip to content

Commit

Permalink
Merge pull request #407 from openaddresses/increase-webhook-payload-s…
Browse files Browse the repository at this point in the history
…ize-limit

Increase the body size limit for the Github webhook
  • Loading branch information
iandees authored Nov 18, 2024
2 parents df26057 + db13ec5 commit 7edeb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7edeb34

Please sign in to comment.