Skip to content

gh cli not found with version 1.0.2 #7

@Moumoutaru

Description

@Moumoutaru

When using version 1.0.2 gh cli binary isn't installed correctly and can't be found.

     - name: Setup GitHub CLI
        uses: actions4gh/setup-gh@v1.0.2
Run actions4gh/setup-gh@v1.0.2
  with:
    gh-version: latest
    cli-token: ***
  
    token: ***
    github-server-url: https://github.com
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /runner/_work/_temp/0c147eda-f9a5-4[2](https://github.com/powerhome/splunk-resources/actions/runs/13569311322/job/37929937094#step:6:2)f4-bcf1-f156a4e0e9b9 -f /runner/_work/_temp/98cb7b98-a14e-414[3](https://github.com/powerhome/splunk-resources/actions/runs/13569311322/job/37929937094#step:6:3)-9996-5996816bb31d
node:internal/child_process:286
      const err = new ErrnoException(exitCode, syscall);
                  ^

Error: Command failed with ENOENT: gh auth login --with-token --hostname github.com
spawn gh ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:286:19)
    at onErrorNT (node:internal/child_process:[4](https://github.com/powerhome/splunk-resources/actions/runs/13569311322/job/37929937094#step:6:4)84:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:[8](https://github.com/powerhome/splunk-resources/actions/runs/13569311322/job/37929937094#step:6:9)2:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn gh',
  path: 'gh',
  spawnargs: [ 'auth', 'login', '--with-token', '--hostname', 'github.com' ],
  originalMessage: 'spawn gh ENOENT',
  shortMessage: 'Command failed with ENOENT: gh auth login --with-token --hostname github.com\n' +
    'spawn gh ENOENT',
  command: 'gh auth login --with-token --hostname github.com',
  escapedCommand: 'gh auth login --with-token --hostname github.com',
  exitCode: undefined,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: '',
  cwd: '/runner/_work/splunk-resources/splunk-resources',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}

Node.js v20.[18](https://github.com/powerhome/splunk-resources/actions/runs/13569311322/job/37929937094#step:6:19).0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions