wp-dependency-installer: GitLab option not working
The GitLab option is not working. New URI is needed.
I believe GitLab removed the GET access to the repository archive for security reasons (https://about.gitlab.com/2018/11/28/security-release-gitlab-11-dot-5-dot-1-released/) and now requires access using the API (which is available through GET as well).
New URI:
https://gitlab.com/api/v4/projects/{project_id}/repository/archive.zip?private_token={personal_access_token}
More info here: https://docs.gitlab.com/ee/api/repositories.html#get-file-archive
The token needs “api” scope for this to work.
The workaround is to use the “direct” option instead of GitLab and use the above URI. You now use the project ID instead of the name/project.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (8 by maintainers)
@afragen thanks. I tried again after updating and it’s still working.
composer update
please, 🚀Great, I think I know what to do to fix this. I’ll get something pushed to
develop
and ping when it’s done for testing. Thanks.