Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix naming

peaklabs-dev6d43bbc6b95c
diff --git a/app/Livewire/Source/Github/Change.php b/app/Livewire/Source/Github/Change.php
index 4c41cb9e45..4f76d7299c 100644
--- a/app/Livewire/Source/Github/Change.php
+++ b/app/Livewire/Source/Github/Change.php
@@ -151,14 +151,14 @@ class Change extends Component
public function syncGithubAppName()
{
try {
- $jwt = $this->github_app->generateJWT();
+ $github_access_token = generate_github_installation_token($this->github_app);
- $response = Http::withToken($jwt)
+ $response = Http::withToken($github_access_token)
->withHeaders([
'Accept' => 'application/vnd.github+json',
'X-GitHub-Api-Version' => '2022-11-28',
])
- ->get('https://api.github.com/app');
+ ->get("{$this->github_app->api_url}/app");
if ($response->successful()) {
$app_data = $response->json();