We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65babc8 commit 6a7b622Copy full SHA for 6a7b622
src/Actions/WebhookAction.php
@@ -20,11 +20,11 @@ public function __invoke(): JsonResponse
20
$request = Request::createFromGlobals();
21
$event = $request->server->get('HTTP_X_GITHUB_EVENT');
22
23
- if (!$this->webhookService->eventApproved($event)) {
+ if (!$this->webhookService->eventApproved((string) $event)) {
24
return response()->json(['message' => __('github-project::github-project.error.event.denied')], 403);
25
}
26
27
- /** @var array<string, list<string, mixed>> $payload */
+ /** @var array<string, mixed> $payload */
28
$payload = json_decode($request->getContent(), true);
29
30
if (!isset($payload['action'])) {
0 commit comments