Skip to content

Commit

Permalink
Fixes #936: Github access_token via query parameter is deprecated. (#943
Browse files Browse the repository at this point in the history
)
  • Loading branch information
danepowell authored May 22, 2020
1 parent e709bac commit 5d5e6d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Task/Development/GitHub.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function sendRequest($uri, $params = [], $method = 'POST')
}

if (!empty($this->accessToken)) {
$url .= "?access_token=" . $this->accessToken;
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Authorization: ' . sprintf('token %s', $this->accessToken)]);
}

curl_setopt_array(
Expand Down

0 comments on commit 5d5e6d7

Please sign in to comment.