We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6488f35 commit 3529d55Copy full SHA for 3529d55
app/Services/GitHubService.php
@@ -55,9 +55,11 @@ public static function fetchReadmeContent(string $repoUrl): ?string
55
56
$apiUrl = "https://api.github.com/repos/{$owner}/{$repo}/readme";
57
58
+ $token = config('services.github.token');
59
+
60
$response = Http::withHeaders([
61
'Accept' => 'application/vnd.github.v3+json',
- 'Authorization' => 'Bearer '.env('GHUB_TOKEN'),
62
+ 'Authorization' => 'Bearer '.$token,
63
])->get($apiUrl);
64
65
if ($response->failed()) {
config/services.php
@@ -39,5 +39,6 @@
39
'client_id' => env('GHUB_ID'),
40
'client_secret' => env('GHUB_SECRET'),
41
'redirect' => env('GHUB_URL'),
42
+ 'token' => env('GHUB_TOKEN'),
43
],
44
];
0 commit comments