summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-07-21 21:17:36 +0000
committerGerrit Code Review <review@openstack.org>2020-07-21 21:17:36 +0000
commit08154253d7322a479d2125cefe6efa73e73e2dcc (patch)
treed017111377d3658ecb0f8672a779ace5d6553173
parent713b533d42f0d6e8112be4fd7c925ce0e6128a0e (diff)
parentcd2ef81d260ede9e8222cc600d072255f4cf68a0 (diff)
downloadzuul-08154253d7322a479d2125cefe6efa73e73e2dcc.tar.gz
Merge "Update access token url" into stable/3.x
-rw-r--r--zuul/driver/github/githubconnection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/zuul/driver/github/githubconnection.py b/zuul/driver/github/githubconnection.py
index a054d9e49..5f7ebccb7 100644
--- a/zuul/driver/github/githubconnection.py
+++ b/zuul/driver/github/githubconnection.py
@@ -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()