Skip to content

Commit 3715993

Browse files
swissspidyCopilot
andauthored
Update src/Package_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d14a28e commit 3715993

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Package_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ private function set_composer_auth_env_var() {
14191419

14201420
// GitLab OAuth token.
14211421
$gitlab_oauth_token = getenv( 'GITLAB_OAUTH_TOKEN' );
1422-
if ( ! isset( $composer_auth['gitlab-oauth'] ) && is_string( $gitlab_oauth_token ) ) {
1422+
if ( ! isset( $composer_auth['gitlab-oauth'] ) && is_string( $gitlab_oauth_token ) && '' !== $gitlab_oauth_token ) {
14231423
$composer_auth['gitlab-oauth'] = [ 'gitlab.com' => $gitlab_oauth_token ];
14241424
$changed = true;
14251425
}

0 commit comments

Comments
 (0)