From 69614981cb0ad4ba6b0f44ec1eb5225d17c3fbcc Mon Sep 17 00:00:00 2001 From: Tobias Zulauf Date: Sun, 5 Jul 2020 11:17:38 +0200 Subject: [PATCH] avoid github deprecation mails when using the token --- administrator/components/com_patchtester/PatchTester/Helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/administrator/components/com_patchtester/PatchTester/Helper.php b/administrator/components/com_patchtester/PatchTester/Helper.php index 80e1853..5568b33 100644 --- a/administrator/components/com_patchtester/PatchTester/Helper.php +++ b/administrator/components/com_patchtester/PatchTester/Helper.php @@ -46,7 +46,7 @@ abstract class Helper // If an API token is set in the params, use it for authentication if ($params->get('gh_token', '')) { - $options->set('gh.token', $params->get('gh_token', '')); + $options->set('headers', ['Authorization' => 'token ' . $params->get('gh_token', '')]); } // Set the username and password if set in the params elseif ($params->get('gh_user', '') && $params->get('gh_password'))