Skip to content

Commit b7a700b

Browse files
committed
Refactor GitLab Personal Access Token credential configuration: username and token fields were swapped, possibly causing authentication failures and exposing the PAT value in log output as a username
1 parent 479c27c commit b7a700b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Composer/ConfigFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ private static function buildCredentialsConfig(string $domain, ?Credentials $cre
6969
CredentialsType::GitlabPersonalAccessToken => [
7070
'gitlab-token' => [
7171
$domain => [
72-
'username' => $credentials->getToken(),
73-
'token' => 'private-token',
72+
'username' => 'private-token',
73+
'token' => $credentials->getToken(),
7474
],
7575
],
7676
],

0 commit comments

Comments
 (0)