unable to upload artifacts, fails with 401 unauthorized
Checklist
-
I'm using the latest version of the extension (Run glab --version)- Extension version: glab 1.61.0 (ef3ade5e)
-
Operating system and version: debian trixie -
Gitlab.com or self-managed instance? gitlab.com - [-] GitLab version (if self-managed) GitLab version here
(Use the
versionendpoint, like this: gitlab.my-company.com/api/v4/version) -
I have performed glab auth statusto check for authentication issues -
Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output
Summary
I have a pipeline that should create releases and upload assets. Creating a release works, but uploading fails.
Environment
hosted, i use the docker image gitlab/glab:latest for the pipeline
Steps to reproduce
- create a project with a gitlab-ci.yml:
release_job:
stage: release
image: gitlab/glab:latest
rules:
- if: '$CI_COMMIT_TAG =~ /^v?\d+\.\d+\.\d+$/'
script:
- glab auth login --job-token $CI_JOB_TOKEN
- glab auth status
- glab --version
- glab release create $CI_COMMIT_TAG
- echo "mock" > test.exe
- DEBUG=true glab release upload $CI_COMMIT_TAG test.exe
- create a tag e.g. 0.1.0
- see the error coming
What is the current bug behavior?
i get an unauthorized error
What is the expected correct behavior?
i would assume that the artefact is added to the release without that "unauthorized"
Relevant logs and/or screenshots
what i noticed, but i guess thats "normal", is that glab auth shows an error because it can not read the user api:

Possible fixes
Edited by jsfdl
