diff --git a/apps/dokploy/pages/api/deploy/github.ts b/apps/dokploy/pages/api/deploy/github.ts index 293207198..7f9b93e69 100644 --- a/apps/dokploy/pages/api/deploy/github.ts +++ b/apps/dokploy/pages/api/deploy/github.ts @@ -28,6 +28,11 @@ export default async function handler( res: NextApiResponse, ) { const signature = req.headers["x-hub-signature-256"]; + if (!signature) { + res.status(401).json({ message: "Missing signature header" }); + return; + } + const githubBody = req.body; if (!githubBody?.installation?.id) {