-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub deprecating query param authentication #8586
Comments
It is fixed in 1.9.3, are you using that version? |
Hi, We updated to 1.9.3 and still get the notification from Github.
|
Ok maybe there is still an issue then.. What is the URL accessed, can you share that? |
It's a link to a private repo zipball, |
Ok, could it be you had hardcoded links with tokens in your composer.lock file or something by any chance? Because in the source I don't see any reference anymore to the query param.. |
same issue here for information. I use the composer/satis docker image and pull the latest image during the build I pass this config to composer :
|
It does not look like it. I looked up the repo that was referenced in the warning from the Github email, and then inspected the composer.lock file in the associated project. It references the zipball, but does not seem to have a token associated with it, it's just a URL such as referenced here: |
Hi, We're having the same issue when trying to update from a private GitHub repo on Composer 1.9.3 on Ubuntu 18.04. We're setting a global token as we've always done with:
But the installer keeps failing:
The repository configuration in the
Update
The update on Step2 appears to be working correctly on my local machine, that is, using my GitHub token it appears that I'm able to pull from the private repo (I've tried clearing Composer's cache and reinitializing the project to force it to pull from the source). However, analyzing the lock file, it appears that a url is hardcoded for the private repo in the form of: https://api.github.com/repos/ORG/REPO/zipball/xxxxxxxxxx Is the |
@Seldaek Just like the others, I am indeed on composer 1.9.3. We are actually fully containerized and using the latest composer build (1.9.3) with github oauth tokens to authenticate. Url is in the same zipball format. |
@edmundofuentes please note that using |
Using "github" as type still triggers the deprecation warning from GitHub. |
I can not reproduce this with 1.9.3.. Can someone still seeing the warning do a -vvv run and try to see if they can spot |
I was experiencing this issue, and updating to |
thanks all. Reading your message I think, on my cause the problem come from my usage of the docker image composer/satis wich seems still using composer 1.9.1. I will propose a PR on satis. |
curiously I looked at some composer plugins we use where I work, and found https://github.com/hirak/prestissimo/blob/4c52352f4bc88bbf9063e18ee94016faadde88c5/src/BaseRequest.php#L143-L148 |
Ok then going to close this, looks like no problem is left in Composer itself. |
Ooh, we are using the same plugin, that will explain it |
I've changed the repository type to "github" in my main composer.json (as recommended by @alcohol ), deleted my The composer.lock is being written as:
But when I run a |
The main motivation of doing this now, is to side-step composer/composer#8586 by upgrading PHP's composer tool. - Upgrade to Ubuntu focal, PHP 7.4 and node 14
The main motivation of doing this now, is to side-step composer/composer#8586 by upgrading PHP's composer tool. - Upgrade to Ubuntu focal, PHP 7.4 and node 14
It seems GitHub is deprecating the ability to use query params to auth with private repos at some time. https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#authenticating-using-query-parameters
Does composer have a plan to change the way we can authenticate to private repos when running
composer install
to support the new changes?The text was updated successfully, but these errors were encountered: