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: show github app secrets

Andras Bacsaicf0dbef3b586
diff --git a/config/version.php b/config/version.php
index 8de13f6e70..3a9c12a301 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.16';
+return '4.0.0-beta.17';
diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php
index c896e9a901..3cea346989 100644
--- a/resources/views/livewire/source/github/change.blade.php
+++ b/resources/views/livewire/source/github/change.blade.php
@@ -32,6 +32,11 @@
</div>
<div class="pt-2 pb-10 ">Your Private GitHub App for private repositories.</div>
@if ($github_app->app_id)
+ <div class="w-48">
+ <x-forms.checkbox noDirty label="System Wide?"
+ helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
+ instantSave id="is_system_wide" />
+ </div>
<div class="flex gap-2">
<x-forms.input id="github_app.name" label="App Name" disabled />
<x-forms.input id="github_app.organization" label="Organization" disabled
@@ -59,9 +64,6 @@
<x-forms.input id="github_app.client_secret" label="Client Secret" type="password" />
<x-forms.input id="github_app.webhook_secret" label="Webhook Secret" type="password" />
</div>
- <x-forms.checkbox noDirty label="System Wide?"
- helper="If checked, this GitHub App will be available for everyone in this Coolify instance."
- instantSave id="is_system_wide" />
@else
<form class="flex gap-4">
<div class="flex items-end gap-2">
diff --git a/routes/web.php b/routes/web.php
index ade3523981..18f09484e4 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -116,7 +116,7 @@ Route::middleware(['auth'])->group(function () {
]);
})->name('source.all');
Route::get('/source/github/{github_app_uuid}', function (Request $request) {
- $github_app = GithubApp::where('uuid', request()->github_app_uuid)->first();
+ $github_app = GithubApp::where('uuid', request()->github_app_uuid)->first()->makeVisible('client_secret')->makeVisible('webhook_secret');
$settings = InstanceSettings::get();
$name = Str::of(Str::kebab($github_app->name));
if ($settings->public_ipv4) {
diff --git a/versions.json b/versions.json
index 684123a62a..6c8e948175 100644
--- a/versions.json
+++ b/versions.json
@@ -4,7 +4,7 @@
"version": "3.12.32"
},
"v4": {
- "version": "4.0.0-beta.16"
+ "version": "4.0.0-beta.17"
}
}
}
\ No newline at end of file