We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcf8d77 commit 8aee8b0Copy full SHA for 8aee8b0
aws/lambda/pytorch-auto-revert/pytorch_auto_revert/github_client_helper.py
@@ -75,13 +75,13 @@ def key_auth_provided(self) -> bool:
75
@property
76
def client(self) -> github.Github:
77
if "client" not in self._data:
78
- if self.token_auth_provided and not self.key_auth_provided:
+ if self.token_auth_provided:
79
auth = github.Auth.Token(self._token)
80
- elif self.key_auth_provided and not self.token_auth_provided:
+ elif self.key_auth_provided:
81
auth = github.Auth.AppInstallationAuth(
82
github.Auth.AppAuth(
83
app_id=self._app_id,
84
- app_secret=self._app_secret,
+ private_key=self._app_secret,
85
),
86
installation_id=self._installation_id,
87
)
0 commit comments