glab asks for release updates and uses wrong credentials

  • I am the user of a self-hosted enterprise gitlab instance (18.4.3-ee)
  • I configured glab as auth-helper (/opt/homebrew/bin/glab auth git-credential)
  • I do not use oauth2 but a personal access token stored in my credential store.
  • I have set GITLAB_HOST=https://git.example.com when pushing.
  • While pushing to our self-hosted instance I got the following output:
❯ git push
ERROR: failed checking for glab updates: GET https://gitlab.com/api/v4/projects/gitlab-org%2Fcli/releases: 401 {message: 401 Unauthorized}
Enumerating objects: 18, done.
Counting objects: 100% (18/18), done.
Delta compression using up to 11 threads
Compressing objects: 100% (9/9), done.
Writing objects: 100% (10/10), 18.01 KiB | 18.01 MiB/s, done.
Total 10 (delta 5), reused 0 (delta 0), pack-reused 0 (from 0)
To https://git.example.com/group/sub-group/project.git
   8e8d51b..8a6068d  main -> main

This looks to me like glab would somehow use my internal PAT for authentication.