fix: potential fix for permissions update

This commit is contained in:
peaklabs-dev
2025-01-06 19:37:51 +01:00
parent fdb5f069fc
commit 49f468c4b7
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ class GithubAppPermissionJob implements ShouldBeEncrypted, ShouldQueue
$github_access_token = generateGithubJwt($this->github_app);
$response = Http::withHeaders([
'Authorization' => "Bearer $github_access_token",
'Accept' => 'application/vnd.github+json',
'Accept' => 'application/vnd.github.machine-man-preview+json',
])->get("{$this->github_app->api_url}/app");
$response = $response->json();
$permissions = data_get($response, 'permissions');

View File

@@ -19,4 +19,4 @@
</a>
</div>
</div>
</div>
</div>