We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d14a28e commit 3715993Copy full SHA for 3715993
1 file changed
src/Package_Command.php
@@ -1419,7 +1419,7 @@ private function set_composer_auth_env_var() {
1419
1420
// GitLab OAuth token.
1421
$gitlab_oauth_token = getenv( 'GITLAB_OAUTH_TOKEN' );
1422
- if ( ! isset( $composer_auth['gitlab-oauth'] ) && is_string( $gitlab_oauth_token ) ) {
+ if ( ! isset( $composer_auth['gitlab-oauth'] ) && is_string( $gitlab_oauth_token ) && '' !== $gitlab_oauth_token ) {
1423
$composer_auth['gitlab-oauth'] = [ 'gitlab.com' => $gitlab_oauth_token ];
1424
$changed = true;
1425
}
0 commit comments