mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Pass Requester arguments to AppInstallationAuth.__integration (#2695)
This commit is contained in:
@@ -119,9 +119,9 @@ class GithubIntegration:
|
||||
seconds_between_writes=seconds_between_writes,
|
||||
)
|
||||
|
||||
def get_github_for_installation(self, installation_id):
|
||||
def get_github_for_installation(self, installation_id, token_permissions=None):
|
||||
# The installation has to authenticate as an installation, not an app
|
||||
auth = self.auth.get_installation_auth(installation_id, requester=self.__requester)
|
||||
auth = self.auth.get_installation_auth(installation_id, token_permissions, self.__requester)
|
||||
return github.Github(**self.__requester.withAuth(auth).kwargs)
|
||||
|
||||
def _get_headers(self):
|
||||
|
||||
Reference in New Issue
Block a user