Skip to content

Is it possible to use an HTTPS URL for a Git repository? #2898

Answered by shreddedbacon
ndouglas asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ndouglas, we use ssh git urls so that we can use deploy keys to access the repository, and the deploy keys can be added to the repository with read only, because Lagoon doesn't need to push into the repo at all.

If your repository is public, then the https endpoint should work, as there isn't a reason to try and authenticate.

Lagoon doesn't support private repositories that only support HTTPs as the source to pull from, because there isn't currently a way to inject user credentials or api tokens to log in to whichever git provider you're using.

This isn't something that I think I've seen requested before either, but we could possibly build this functionality in.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@ndouglas
Comment options

@shreddedbacon
Comment options

@ndouglas
Comment options

Answer selected by ndouglas
Comment options

You must be logged in to vote
2 replies
@ndouglas
Comment options

@tobybellwood
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants