fix(auth): fix CI JOB TOKEN with custom CA file

Description

  • fix(auth): fix CI JOB TOKEN with custom CA file

Related Issues

Resolves #7875 (closed)

How has this been tested?

Follow this to prepare an SSL-supported GDK: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/nginx.md

export GITLAB_HOST="https://gdk.test:3443"
./bin/glab config set ca_cert "/Users/furkan/temp/ca_cert_for_releasing_with_glab.pem" --host gdk.test:3443
./bin/glab auth login --job-token "glcbt-abc" --hostname gdk.test:3443 --api-protocol https
./bin/glab -R "root/basic" release create v3.3.4

Screenshots (if appropriate):

BEFORE:

Screenshot_2025-05-22_at_12.46.12

AFTER:

Screenshot_2025-05-22_at_12.46.19

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Merge request reports

Loading