Unable to download job artifact after updating to glab 1.80.0

Checklist

  • I'm using the latest version of the extension (Run glab --version)
    • Extension version: 1.80.2
  • Operating system and version: Linux Debian 13
  • Gitlab.com or self-managed instance? self-managed instance
  • GitLab version (if self-managed) 18.2.8-ee
  • 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

We use the following to download a job artifact:

glab job artifact -R <gitlab project url> <refName> <jobName> -p <outputPath>

It works on v1.79.0, but fails on v1.80.0, 1.80.1, 1.80.2 with 400 {error: job is missing}

If I set GLAB_DEBUG_HTTP=true and try the various versions, I can see that the working 1.79.0 makes a GET request that includes the ?job=<jobName> query parameter, but it is absent when I use 1.80.x.

Environment

  • OS: Linux 6.8.0-64-generic aarch64
  • SHELL: bash
  • TERM: xterm-256color
  • GLAB: glab 1.80.2 (cca0f120)

Steps to reproduce

described above

Edited by Matt Johnson-Pint