Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error and mismatched URLs when using github app credentials via github enterprise #176

Open
kenherring opened this issue Oct 10, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kenherring
Copy link

kenherring commented Oct 10, 2022

Description

When attempting to use the newer github app token authentication we receive the following error:

FATA[0000] while checking if 'owners' checker is satisfied: unknown error occurred while calling GitHub: Get "https://git.companyname.com/api/v3/repos/orgname/reponame": could not refresh installation id 47's token: received non 2xx response status "404 Not Found" when fetching https://api.github.com/app/installations/47/access_tokens

It's possible that I have this misconfigured, but it's also possible this is a bug. The mismatched URLs in the error message are concerning.

I suspect the correct URL to hit for us would be: https://git.companyname.com/api/v3/app/installations/47/access_tokens

Do you have any suggestions on how we might be able to resolve this?

Expected result

Authentication passes.

Actual result

Authentication fails.

Steps to reproduce

Configure a github app for codeowners validation via github enterprise.

Troubleshooting

@kenherring kenherring added the bug Something isn't working label Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants