Skip to content

Instantly share code, notes, and snippets.

@asconix
Created January 3, 2019 13:32
Show Gist options
  • Save asconix/c717de61ea97436dee3f6e3c5b7f3d53 to your computer and use it in GitHub Desktop.
Save asconix/c717de61ea97436dee3f6e3c5b7f3d53 to your computer and use it in GitHub Desktop.
Hi folks. I want to use deploy keys to access private repos (hosted GitLab).
This one works fine:
git clone https://my-gitlab-deploy-token-user:my-gitlab-deploy-token-pass@gitlab.com/username/projectname.git
Accessing archive.tgz fails with authentication error:
curl https://my-gitlab-deploy-token-user:my-gitlab-deploy-token-pass@gitlab.com/username/projectname/repository/archive.tar.gz
Anyone has an idea why the token authentication works fine using HTTP endpoint for a Git clone but not direct access to the archiuve tarball?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment