1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00

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
parent 39a4447103
commit 3bc085ea3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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', '');