labeler
labeler copied to clipboard
Getting Bad Credentials while testing in GH Enterprise Server 3.6
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'