We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb8752 commit 96a94adCopy full SHA for 96a94ad
1 file changed
app/cdash/app/Lib/Repository/GitHub.php
@@ -147,7 +147,12 @@ public function authenticate($required = true)
147
148
$this->apiClient->authenticate($jwt, null, GitHubClient::AUTH_JWT);
149
150
- $token = $this->apiClient->api('apps')->createInstallationToken($this->installationId);
+ try {
151
+ $token = $this->apiClient->api('apps')->createInstallationToken($this->installationId);
152
+ } catch (\Exception $e) {
153
+ \Log::error($e->getMessage());
154
+ return false;
155
+ }
156
if ($token) {
157
$this->apiClient->authenticate($token['token'], null, GitHubClient::AUTH_HTTP_TOKEN);
158
}
0 commit comments