Skip to content

Unable to authenticate github on AuthHelper.php line 132 #890

Description

@Nirzak

Describe the bug
During vercel deploy after the latest changes I faced the following error

In AuthHelper.php line 132:

Could not authenticate against github.com

To Reproduce
Fetch the latest changes of the repo that has occured for last couple of months.
Try to deploy it on vercel

Expected behavior
It should deploy it without any problem as I have already setup the TOKEN value with my github access token

Possible Solution

After I have set COMPOSER_AUTH environment variable with the following value on vercel,
{"github-oauth": {"github.com": "GITHUB_TOKEN"}}

the deployment worked.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions