Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

"scopes does not have a valid value" when creating personal access tokens

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: 1.56.0
  • Operating system and version: NixOS 24.11
  • Gitlab.com or self-managed instance? gitlab.com
  • I have performed glab auth status to check for authentication issues
  • Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output

Summary

Can't create any personal access tokens using the CLI.

Environment

  • OS: Linux 6.6.89 x86_64
  • SHELL: /nix/store/41pi0jiyvlhxgpfhxzvb44w1skc8yp4z-bash-interactive-5.2p37/bin/bash
  • TERM: xterm-256color
  • GLAB: glab 1.56.0 ()

Other:

Steps to reproduce

glab auth login
glab token create --user=@me test

What is the current bug behavior?

An error message (see below).

What is the expected correct behavior?

It should generate and print a new token.

Relevant logs and/or screenshots

❯ DEBUG=true glab token create --scope=api --user=@me test
[git remote -v]
[git config --get-regexp ^remote\..*\.glab-resolved$]
[git remote -v]
[git config --get-regexp ^remote\..*\.glab-resolved$]
ERROR: POST https://gitlab.com/api/v4/user/personal_access_tokens: 400 {error: scopes does not have a valid value}

Possible fixes

Assignee Loading
Time tracking Loading