mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
GitHub integrations generate access tokens containing a dot
This commit is contained in:
parent
41c3307fc5
commit
ad41c324d3
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ abstract class BaseIO implements IOInterface, LoggerInterface
|
|||
}
|
||||
|
||||
foreach ($githubOauth as $domain => $token) {
|
||||
if (!preg_match('{^[a-z0-9]+$}', $token)) {
|
||||
if (!preg_match('{^[.a-z0-9]+$}', $token)) {
|
||||
throw new \UnexpectedValueException('Your github oauth token for '.$domain.' contains invalid characters: "'.$token.'"');
|
||||
}
|
||||
$this->checkAndSetAuthentication($domain, $token, 'x-oauth-basic');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue