This article provides solutions for the issue of failed deployments related to Github token failures caused by outdated Composer keys.
Affected products and versions
Issue
Deployments fail and deployment logs contain information similar to the following:
Fatal error: Uncaught UnexpectedValueException: Your github oauth token for github.com contains invalid characters: “ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” in /app/vendor/composer/composer/src/Composer/IO/BaseIO.php:129
Cause
Outdated Composer keys cause the Github token failures which result in failed deployments.
Solution
To resolve the issue, please update your Composer version to 1.10.22:
If this method does not work, please submit a support ticket.