{{ $github_app->name ?: 'GitHub App' }} | Sources | Coolify @if (data_get($github_app, 'app_id')) @php $githubAppRouteParameters = ['github_app_uuid' => $github_app->uuid]; $showSettingsSidebar = in_array($activeTab, ['general', 'danger'], true); $settingsMenuItems = [ [ 'label' => 'General', 'route' => 'source.github.show', 'active' => $activeTab === 'general', 'icon' => 'settings', ], [ 'label' => 'Danger Zone', 'route' => 'source.github.danger', 'active' => $activeTab === 'danger', 'icon' => 'shield-alert', ], ]; @endphp @if (data_get($github_app, 'installation_id')) @else @endif @if ($showSettingsSidebar)
@if (!data_get($github_app, 'installation_id') && $activeTab === 'general')

Repository access has not been installed yet. Complete this step before attaching the source to an application.

Install repositories
@elseif ($activeTab === 'general') @php $privateKeyOptions = collect([ blank($github_app->private_key_id) ? ['value' => 0, 'label' => 'Select a private key'] : null, ...$privateKeys->map(fn ($privateKey) => [ 'value' => $privateKey->id, 'label' => $privateKey->name, ])->all(), ])->filter()->values()->all(); @endphp
Sync name @can('update', $github_app) Rename Repositories @endcan
@if (!isCloud())
@if ($isSystemWide)
Use team-specific GitHub Apps when you need repository isolation between teams.
@endif @endif
@elseif ($activeTab === 'danger')

Delete GitHub App

Permanently delete {{ $name ?: 'this GitHub App' }} from Coolify. Applications using this source will need another Git provider configured.

  • • The App registration on GitHub is not removed automatically.
  • • Linked applications keep their Git settings until you change them.
  • • This source cannot be restored from Coolify after deletion.
@can('delete', $github_app) @else Delete @endcan
@cannot('delete', $github_app)
Contact a team administrator if this GitHub App must be deleted.
@endcannot
@endif
@elseif ($activeTab === 'permissions')
@can('view', $github_app) Refetch Update on GitHub @endcan
@else
@if ($applications->isEmpty()) @else
Project
Environment
Resource
Type
@foreach ($applications->sortBy('name', SORT_NATURAL) as $resource) @php $projectName = (string) data_get($resource->project(), 'name'); $environmentName = (string) data_get($resource, 'environment.name'); $resourceName = (string) $resource->name; $resourceType = (string) str($resource->type())->headline(); $searchValue = strtolower( $projectName.' '.$environmentName.' '.$resourceName.' '.$resourceType, ); @endphp {{ $projectName }} {{ $environmentName }} {{ $resourceName }} {{ $resourceType }} @endforeach
@endif
@endif @else

{{ $name ?: 'GitHub App' }}

Finish registering this GitHub App before using it as a source

@can('delete', $github_app)
@endcan
@can('create', $github_app) @php $endpointOptions = collect([ $fqdn ? ['value' => $fqdn, 'label' => 'Use '.$fqdn] : null, $ipv4 ? ['value' => $ipv4, 'label' => 'Use '.$ipv4] : null, $ipv6 ? ['value' => $ipv6, 'label' => 'Use '.$ipv6] : null, config('app.url') ? ['value' => config('app.url'), 'label' => 'Use '.config('app.url')] : null, ])->filter()->values()->all(); @endphp
@if (!isCloud() || isDev())
@else

Register the GitHub App before using this source.

@endif

Mandatory permissions

Contents: read · Metadata: read · Email: read

Use this path when the automated GitHub manifest flow is unavailable or you need complete control over the App configuration.

@else You do not have permission to create GitHub Apps. Contact your team administrator. @endcan @endif