create-an-issue icon indicating copy to clipboard operation
create-an-issue copied to clipboard

Bad Credentials for GitHub Enterprise edition

Open Abhijeet-Pubba opened this issue 1 year ago • 2 comments

Hey there,

I have been trying to use this action to create issues but couldn't. Steps in my .yml file looks something like below

...
steps:
  - uses: actions/checkout@v3
  - name: Create Issue Action
    uses: JasonEtco/create-an-issue@v2
    env:
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
      assignees: <username>
      update_existing: true
      search_existing: all
...

And ISSUE_TEMPLATE.md like below

---
title: "[Bug] : Something unexpected happened"
---
"A bug happened!"

Action is Failing with HttpError: Bad credentials for our enterprise edition

debug     Reading from file .github/ISSUE_TEMPLATE.md
ℹ  info      Front matter for .github/ISSUE_TEMPLATE.md is { title: '[Bug] : Something unexpected happened' }
⬤  debug     Templates compiled {
  body: '"A bug happened!"\n',
  title: '[Bug] : Something unexpected happened'
}
ℹ  info      Fetching issues with title "[Bug] : Something unexpected happened"
Error: Bad credentials
✖  fatal     HttpError: Bad credentials 
    at /Users/apubba/Desktop/actions-runner/_work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:5855:21
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async createAnIssue (/Users/apubba/Desktop/actions-runner/_work/_actions/JasonEtco/create-an-issue/v2/dist/index.js:41271:32)

Abhijeet-Pubba avatar Jun 26 '23 06:06 Abhijeet-Pubba

I have the same issue! I might be able to contribute a PR to fix this.

ConnorDY avatar Sep 01 '23 15:09 ConnorDY

Hey @JasonEtco, in my org we'd love to use this action but this is clearly a blocking issue... Any plans to fix it? @ConnorDY any PR incoming that @JasonEtco could merge?

EdouardF avatar Apr 09 '24 17:04 EdouardF