NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 394 forks source link

Support using CI_JOB_TOKEN for authentication #669

Closed balasankarc closed 1 year ago

balasankarc commented 1 year ago

Closes: https://github.com/NARKOZ/gitlab/issues/668

Support specifying a prefix for personal access tokens and support using CI_JOB_TOKEN for authentication if the the token doesn't start with that prefix.

Ideally, we should default the prefix to glpat- so that it works out of the box. But that may break users on older GitLab instances where the prefix isn't present.

balasankarc commented 1 year ago

@NARKOZ How do you feel about something like this? Ideally, we should default the prefix to glpat- so that it works out of the box. But that may break users on older GitLab instances where the prefix isn't present. So, I think we can do that in a major version as a breaking change.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

floh96 commented 10 months ago

@balasankarc could you reopen this pr? @NARKOZ could you reopen and review this pr please?

balasankarc commented 22 hours ago

New PR at https://github.com/NARKOZ/gitlab/pull/700