Skip to content

Commit 70ad5f2

Browse files
committed
Do not dump the token
1 parent 447e8c8 commit 70ad5f2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Context/FeatureContext.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,16 +213,17 @@ private static function get_process_env_variables() {
213213
$env['TRAVIS_BUILD_DIR'] = $travis_build_dir;
214214
}
215215

216-
$github_token = getenv( 'GITHUB_TOKEN' );
217-
if ( false !== $github_token ) {
218-
$env['GITHUB_TOKEN'] = $github_token;
219-
}
220-
216+
// Dump environment for debugging purposes, but before adding the GitHub token.
221217
wp_cli_behat_env_debug( "Environment:" );
222218
foreach ( $env as $key => $value ) {
223219
wp_cli_behat_env_debug( " [{$key}] => {$value}" );
224220
}
225221

222+
$github_token = getenv( 'GITHUB_TOKEN' );
223+
if ( false !== $github_token ) {
224+
$env['GITHUB_TOKEN'] = $github_token;
225+
}
226+
226227
return $env;
227228
}
228229

0 commit comments

Comments
 (0)