glab cli version 1.43.0 fails with permission error on Windows
Checklist
-
I'm using the latest version of the extension (Run glab --version
)- Extension version: Put your extension version here
-
Operating system and version: Microsoft Windows 10 Enterprise, 10.0.19045 -
Gitlab.com or self-managed instance? self-managed instance -
GitLab version (if self-managed) GitLab Community Edition version 17.0.0, revision: "d29650c9a04" (Use the version
endpoint, like this: gitlab.my-company.com/api/v4/version) -
I have performed glab auth status
to check for authentication issues
Summary
glab commands return error on Windows X64
failed to read configuration: C:\Users\username.config\glab-cli/config.yml has the permissions 666, it must be 600 to be used by glab.
you may want to chmod 600 C:\Users\username\.config\glab-cli/config.yml
Environment
- OS: Windows 10 Enterprise
- SHELL: Powershell
- TERM: N/A
- GLAB: glab_1.43.0_Windows_X86_64
Other:
Steps to reproduce
What is the current bug behavior?
Any glab cli command fails on Windows
Returns error message with permission error on config.yml file
What is the expected correct behavior?
command executes
Relevant logs and/or screenshots
PS C:\Users\lhunter\projects\invDemo> glab --version
failed to read configuration: C:\Users\lhunter.config\glab-cli/config.yml has the permissions 666, it must be 600 to be used by glab.
you may want to chmod 600 C:\Users\lhunter\.config\glab-cli/config.yml