Skip to content

Commit 07f0dec

Browse files
authored
Merge pull request #43 from abdullah-kasim/fix/github-token-path-switch
2 parents 1c41ca8 + 6c7af80 commit 07f0dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.maintenance/clone-all-repositories.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
$headers = '';
1717
$token = getenv( 'GITHUB_TOKEN' );
1818
if ( ! empty( $token ) ) {
19-
$headers = '--header "Authorization: token $token"';
19+
$headers = "--header \"Authorization: Bearer $token\"";
2020
$response = shell_exec( "curl -s {$headers} {$request}" );
2121
} else {
2222
$response = shell_exec( "curl -s {$request}" );

0 commit comments

Comments
 (0)