From 3bc085ea3ff71b6404e8693a489ab3bad661f614 Mon Sep 17 00:00:00 2001 From: "Vincent (Wen Yu) Ge" Date: Wed, 6 Sep 2023 13:57:46 -0400 Subject: [PATCH] Update app/controllers/api/vcs.php Co-authored-by: Christy Jacob --- app/controllers/api/vcs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/vcs.php b/app/controllers/api/vcs.php index d4055e4860..0dd854ce98 100644 --- a/app/controllers/api/vcs.php +++ b/app/controllers/api/vcs.php @@ -790,7 +790,7 @@ App::post('/v1/vcs/github/events') $valid = empty($signatureRemote) ? true : $github->validateWebhookEvent($payload, $signatureRemote, $signatureLocal); if (!$valid) { - throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, "Payload is not signed properly. Please make sure webhook secret has same value in GitHub app and in _APP_VCS_GITHUB_WEBHOOK_SECRET environment variable"); + throw new Exception(Exception::GENERAL_ACCESS_FORBIDDEN, "Invalid webhook payload signature. Please make sure the webhook secret has same value in your GitHub app and in the _APP_VCS_GITHUB_WEBHOOK_SECRET environment variable"); } $event = $request->getHeader('x-github-event', '');