Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Gitlab CI Deploy Token cant push to repo

I am trying to copy some files from Firebase into a Gitlab repo.

Using my personal SSH credentials, I am able to do this.

I’d like to use deploy tokens. I generated a fresh token and gave it all the permissions I can. However, when I run the CI pipeline I get an "fatal: Authentication failed"

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

A deploy token is simply not made for that. As per the documentation a deploy token is not capable to write to a GitLab repository. Here is what you can do with a deploy token:

  1. Clone Git repositories.
  2. Pull from and push to a GitLab container registry.
  3. Pull from and push to a GitLab package registry.

What may be a better fit for your use case is a so called Deploy Key. If the deploy key has read-write permissions you should be able to solve your issues.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading