extdn / github-actions-m2

137 stars 46 forks source link

Github.com contains invalid characters caused by old composer docker images #79

Open piotrkwiecinski opened 1 year ago

piotrkwiecinski commented 1 year ago

When running job with COMPOSER_AUTH variable this form:

{
  "http-basic": {
    "repo.magento.com": {
      "username": "XXX",
      "password": "XXX"
    }
  },
  "github-oauth": {
    "github.com": "XXXX"
  }

Pipeline throws:

Your github oauth token for github.com contains invalid characters: "***"

I believe it would be solved by rebuilding all composer based images.

Reference: https://twitter.com/seldaek/status/1395375090603286534 https://nono.ma/github-oauth-token-for-github-com-contains-invalid-characters-on-composer-install

As a hacky workaround you have to put github credentials in http basic.