Skip to content

Commit

Permalink
Do not verify SSL certs (find a way to work in phar file)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Jun 20, 2023
1 parent 95dd476 commit d2b5e3a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/N98/Magento/Command/Github/PullRequestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d2b5e3a

Please sign in to comment.