Skip to content

Commit

Permalink
Website: Fix constant names for GH export oauth (#1378)
Browse files Browse the repository at this point in the history
## What is this PR doing?

The custom-redirects-lib.php file is setting different environment
variable names than are needed for the GitHub export oauth script.

Related to #1197

## Testing Instructions

- Tested manually on playground-dot-wordpress-dot-net.atomicsites.blog
  • Loading branch information
brandonpayton authored May 10, 2024
1 parent 756774c commit fce8394
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ function playground_maybe_set_environment( $requested_path ) {
$secrets->GITHUB_APP_CLIENT_ID,
$secrets->GITHUB_APP_CLIENT_SECRET,
) ) {
putenv( "GITHUB_APP_CLIENT_ID={$secrets->GITHUB_APP_CLIENT_ID}" );
putenv( "GITHUB_APP_CLIENT_SECRET={$secrets->GITHUB_APP_CLIENT_SECRET}" );
putenv( "CLIENT_ID={$secrets->GITHUB_APP_CLIENT_ID}" );
putenv( "CLIENT_SECRET={$secrets->GITHUB_APP_CLIENT_SECRET}" );
} else {
error_log( 'PLAYGROUND: Missing secrets for oauth.php' );
}
Expand Down

0 comments on commit fce8394

Please sign in to comment.