mirror of
https://github.com/appwrite/appwrite
synced 2026-05-19 06:58:21 +00:00
payload debug
This commit is contained in:
parent
de29879793
commit
270dfd685d
1 changed files with 2 additions and 1 deletions
|
|
@ -887,6 +887,7 @@ App::post('/v1/vcs/github/events')
|
|||
function (GitHub $github, Request $request, Response $response, Database $dbForPlatform, callable $getProjectDB, Build $queueForBuilds) use ($createGitDeployments) {
|
||||
|
||||
$payload = $request->getRawPayload();
|
||||
$event = $request->getHeader('x-github-event', '');
|
||||
$parsedPayload = $github->getEvent($event, $payload);
|
||||
$providerInstallationId = $parsedPayload["installationId"] ?? '';
|
||||
|
||||
|
|
@ -936,7 +937,7 @@ App::post('/v1/vcs/github/events')
|
|||
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', '');
|
||||
|
||||
$privateKey = System::getEnv('_APP_VCS_GITHUB_PRIVATE_KEY');
|
||||
$githubAppId = System::getEnv('_APP_VCS_GITHUB_APP_ID');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue