We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a98bb8c commit 17ce3e4Copy full SHA for 17ce3e4
1 file changed
src/Package_Command.php
@@ -1434,7 +1434,10 @@ private function set_composer_auth_env_var() {
1434
// Bitbucket OAuth consumer.
1435
$bitbucket_key = getenv( 'BITBUCKET_CONSUMER_KEY' );
1436
$bitbucket_secret = getenv( 'BITBUCKET_CONSUMER_SECRET' );
1437
- if ( ! isset( $composer_auth['bitbucket-oauth'] ) && is_string( $bitbucket_key ) && is_string( $bitbucket_secret ) ) {
+ if ( ! isset( $composer_auth['bitbucket-oauth'] )
1438
+ && is_string( $bitbucket_key ) && '' !== $bitbucket_key
1439
+ && is_string( $bitbucket_secret ) && '' !== $bitbucket_secret
1440
+ ) {
1441
$composer_auth['bitbucket-oauth'] = [
1442
'bitbucket.org' => [
1443
'consumer-key' => $bitbucket_key,
0 commit comments