From d2b5e3a5b7ed38bf58e7945cf44791e4251b0716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCnch?= Date: Tue, 20 Jun 2023 13:45:18 +0200 Subject: [PATCH] Do not verify SSL certs (find a way to work in phar file) --- src/N98/Magento/Command/Github/PullRequestCommand.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/N98/Magento/Command/Github/PullRequestCommand.php b/src/N98/Magento/Command/Github/PullRequestCommand.php index 01117b14..c4e3dae2 100644 --- a/src/N98/Magento/Command/Github/PullRequestCommand.php +++ b/src/N98/Magento/Command/Github/PullRequestCommand.php @@ -91,7 +91,7 @@ protected function execute(InputInterface $input, OutputInterface $output) protected function fetchDiffContent($diffUrl): string { if ($this->diffContent === '') { - $response = Requests::get($diffUrl); + $response = Requests::get($diffUrl, [], ['verify' => false]); $this->diffContent = $response->body; } @@ -134,7 +134,9 @@ protected function getPullRequestInfoByApi(InputInterface $input): \WpOrg\Reques 'https://api.github.com/repos/%s/pulls/%d.patch', $this->repository, $input->getArgument('number') - ) + ), + [], + ['verify' => false] ); return $pullRequestDataResponse; }