Skip to content

Instantly share code, notes, and snippets.

@Eseperio
Created August 6, 2025 17:11
Show Gist options
  • Save Eseperio/9d915fa6da0f21197884fdb808462791 to your computer and use it in GitHub Desktop.
Save Eseperio/9d915fa6da0f21197884fdb808462791 to your computer and use it in GitHub Desktop.
Gitlab Deploy token not working with composer and private repositories

Gitlab Deploy token not working with composer and private repositories

Steps for fixing it:

  • Ensure your private repositories are configured as git and not as vcs. The latter causes composer to use gitlab api instead of https url, resulting in 404 for composer.
  • Check expiration date of token
  • Ensure you have addded your deploy token in composer config. composer config --global --list

Still lost: try highest verbosity level running composer with -vvv

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