Closed ctcampbell closed 11 months ago
It appears the lookup is being done against the
/users/...
endpoint which doesn't seem correct for an organisation?
We do both. There is no unified REST API endpoint, so we try the org lookup first, and then do the user lookup: https://github.com/actions/create-github-app-token/blob/bb368d6a108e1f8f77914270decfd728d4a44138/lib/main.js#L95-L112
I agree the error we through could be more helpful though. We should make clear that an installation was not found for pre-quantum-research
and do not share the details about the final failed request to the /users/{org}/installation
endpoint.
In your case, it looks like the app is not installed on @pre-quantum-research. If you register a GitHub app, you still need to install it, even if it's an app private to your organization.
In your case, it looks like the app is not installed on @pre-quantum-research. If you register a GitHub app, you still need to install it, even if it's an app private to your organization.
You are absolutely correct, silly me 😅
No worries, I've been there countless times myself 😁
I have an app installation set up on an organisation, having followed the docs on this repo. It appears the lookup is being done against the
/users/...
endpoint which doesn't seem correct for an organisation?