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

GitLab Tokens not used. #15

Closed
keplersj opened this issue Jan 12, 2018 · 3 comments
Closed

GitLab Tokens not used. #15

keplersj opened this issue Jan 12, 2018 · 3 comments

Comments

@keplersj
Copy link
Member

Looking through the documentation it looks like this plugin will use the GITHUB_TOKEN or GH_TOKEN variables if present, but not the GITLAB_TOKEN or GL_TOKEN variables. Can this functionality be added?

@keplersj
Copy link
Member Author

Setting GIT_CREDENTIALS to gitlab-ci-token:$GITLAB_TOKEN in GitLab works very well.

@gr2m
Copy link
Member

gr2m commented Jan 13, 2018

Can we close this, as it’s documented in the README?

For GitLab theGIT_CREDENTIALS value has to be set with gitlab-ci-token:<personal_access_tokens>

@pvdlg
Copy link
Member

pvdlg commented Jan 13, 2018

If GITLAB_TOKEN is set we could defined (in the code) the Git credential to gitlab-ci-token:<GITLAB_TOKEN> automatically. But I'm not sure how well this is supported as it's not part of the GitLab doc.
Does this work in both public and private GitLab instance? Is it the officially supported way to access the remote repository? Or is it subject to change in the future?

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

No branches or pull requests

3 participants