Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Getting Bad Credentials while testing in GH Enterprise Server 3.6 #39

Open
maheshsmartcow opened this issue Sep 23, 2022 · 0 comments
Open

Comments

@maheshsmartcow
Copy link

maheshsmartcow commented Sep 23, 2022

I am trying to run this action in self-hosted GH Enterprise server (3.6) environment, but I am getting below error

RequestError [HttpError]: Bad credentials
    at /home/nvidia/Projects/actions-runner/_work/_actions/andymckay/labeler/1.0.4/node_modules/@octokit/request/dist-node/index.js:66:23
    at processTicksAndRejections (internal/process/task_queues.js:9[7](https://smartcow.dev/TestOrg/test-repo/runs/4761?check_suite_focus=true#step:2:8):5)
    at async label (/home/nvidia/Projects/actions-runner/_work/_actions/andymckay/labeler/1.0.4/label.js:62:33) {
  status: 401,

and I noticed, it is making API call to github.com instead of the hostname of our GH server. Does this action supports my use case ? Please advise.

request: {
    method: 'GET',
    url: 'https://api.github.com/repos/TestOrg/test-repo/issues/2',
    headers: {
      accept: 'application/vnd.github.v3+json',
      'user-agent': 'octokit.js/16.28.9 Node.js/12.22.7 (Linux 4.9; arm64)',
      authorization: 'token [REDACTED]'
    },
    request: { hook: [Function: bound bound register], validate: [Object] }
  },
  documentation_url: 'https://docs.github.com/rest'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant