Update app/controllers/api/vcs.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Vincent (Wen Yu) Ge
2023-09-06 13:57:46 -04:00
committed by GitHub
co-authored by Christy Jacob
parent 39a4447103
commit 3bc085ea3f
+1 -1
View File
@@ -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', '');