Github Outh Token not working

Hi Team,

I have my project in magento 2.3.3 and I am upgrading it to Magento 2.4.2.
In auth.json file I want to add github token generated from the link https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+NTZ-CPU-155+2021-04-09+1517.
But the token is not working when I am adding the same in mu auth.json file.

Error I am getting : Your github oauth token for github.com contains invalid characters: “token removed by mods

Please guide on this asap.

Thanks in advance.
Rashi

You just posted a secret token publicly, please revoke it immediately and generate a new one! :warning:

As for the error, GitHub recently changed the token format and significantly expanded the range of possible characters, see here:

I assume the validation code needs to be updated to accept the new token format.

3 Likes