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

lab token create doesn't work on gitlab.com #895

Open
claytonrcarter opened this issue May 13, 2024 · 0 comments
Open

lab token create doesn't work on gitlab.com #895

claytonrcarter opened this issue May 13, 2024 · 0 comments

Comments

@claytonrcarter
Copy link
Collaborator

My PATs are all expiring tomorrow, so – eager to try out the relatively new token create command – I tried:

❯ lab token create --expiresat 2025-05-13 --name 'Bot Token' --scopes api
2024/05/13 13:41:02 ERROR: token_create.go:74: POST https://gitlab.com/api/v4/users/111111/personal_access_tokens: 403 {message: 403 Forbidden}

It turns out that (if I understand correctly), this subcommand cannot work for gitlab.com, because:

Suggestion
It may be nice if this command errored early with a more helpful message when it's run in gitlab.com, perhaps with --force flag to allow it proceed in case you really do just need the k8s_proxy scope.

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

No branches or pull requests

1 participant