Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for gitlab token #24

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

obeleh
Copy link

@obeleh obeleh commented Dec 24, 2022

This pr:

  • Updates go-git and go-billy to v5
  • Adds support for gitlab token (should also work with github but haven't tested that)

I first thought I would have to use http.TokenAuth but this except was present in go-git:

// IMPORTANT: If you are looking to use OAuth tokens with popular servers (e.g.
// GitHub, Bitbucket, GitLab) you should use BasicAuth instead. These servers
// use basic HTTP authentication, with the OAuth token as user or password.
// Check the documentation of your git server for details.

@obeleh
Copy link
Author

obeleh commented Jan 25, 2023

I was curious if this PR is useful for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant