Skip to content

The Setup CLI Action Ignores Pinned Version #19441

@harrisoncramer

Description

@harrisoncramer

setup-cli@main ignores version input, installs latest instead

The setup-cli action ignores the specified version input and installs the latest CLI version.

Workflow config

- name: Install gh-aw CLI
  uses: github/gh-aw/actions/setup-cli@main
  with:
    version: v0.51.6

Logs

[INFO] Using specified version: v0.51.6
[INFO] Installed version: v0.52.1
  1. Input received correctly:

    INPUT_VERSION: v0.51.6
    
  2. Action acknowledges the version:

    [INFO] Using specified version: v0.51.6
    
  3. But then installs via gh extension install:

    [INFO] Attempting to install gh-aw using 'gh extension install'...
    [SUCCESS] Successfully installed gh-aw using gh extension install
    
  4. And the installed version is wrong:

    [INFO] Installed version: v0.52.1
    

The bug is in the install.sh script. It's using gh extension install which apparently ignores the version parameter and installs the latest version. The script logs "Using specified version: v0.51.6" but then the actual gh extension install command doesn't respect that version constraint.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions