Skip to content

gh cli not found with version 1.0.2Β #7

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions