Skip to content

Commit

Permalink
Handle key fallback to keys.sample.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbestle committed Jan 4, 2025
1 parent d77d97d commit 64b5056
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/plugins/github/Github.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static function request(
): Remote {
$key = option('keys.github');

if ($key === null) {
if ($key === null || $key === '') {
throw new InvalidArgumentException('Missing GitHub API token');
}

Expand Down

0 comments on commit 64b5056

Please sign in to comment.