diff --git a/backend/src/middlewares/auth.ts b/backend/src/middlewares/auth.ts index dabac1d74..2ff89bf7e 100644 --- a/backend/src/middlewares/auth.ts +++ b/backend/src/middlewares/auth.ts @@ -268,10 +268,6 @@ function authenticateGithubWebhook(): Handler { const webhookSecret = process.env.GITHUB_WEBHOOK_SECRET; - console.log(webhookSecret); - console.log(authHeader); - console.log(JSON.stringify(req.body)); - try { if (!webhookSecret) { throw new MonkeyError(500, "Missing Github Webhook Secret"); @@ -286,9 +282,6 @@ function authenticateGithubWebhook(): Handler { const untrusted = Buffer.from(authHeader as string, "ascii"); const isSignatureValid = crypto.timingSafeEqual(trusted, untrusted); - console.log(trusted.toString()); - console.log(untrusted.toString()); - if (!isSignatureValid) { throw new MonkeyError(401, "Github webhook signature invalid"); }