Merge "Update access token url" into stable/3.x

This commit is contained in:
Zuul 2020-07-21 21:17:36 +00:00 committed by Gerrit Code Review
commit 08154253d7
1 changed files with 2 additions and 2 deletions

View File

@ -997,8 +997,8 @@ class GithubConnection(BaseConnection):
if ((not expiry) or (not token) or (now >= expiry)):
headers = self._get_app_auth_headers()
url = "%s/installations/%s/access_tokens" % (self.base_url,
installation_id)
url = "%s/app/installations/%s/access_tokens" % (
self.base_url, installation_id)
response = requests.post(url, headers=headers, json=None)
response.raise_for_status()