ngrok basic auth
[pharext/pharext.org] / app / Github / Create / Webhook.php
index 6e583fcd91c88428dd4439f7d6c3b803a20c3259..6f69d0c811ad2fe7ea73fac197b2ac55f0a98391 100644 (file)
@@ -15,13 +15,14 @@ class Webhook extends Create
                        "Content-Type" => "application/json",
                        "Authorization" => "token " . $this->api->getToken(),
                ]);
+               
                $request->getBody()->append(json_encode([
                        "name" => "web",
                        "config" => [
                                "url" => $this->config->hook->url,
                                "content_type" => $this->config->hook->content_type,
+                               "insecure_ssl" => $this->config->hook->insecure_ssl,
                                "secret" => $this->config->client->secret, // FIXME: bad idea?
-                               "insecure_ssl" => false,
                        ]
                ]));
                return $request;