Skip to content

Fix GitHub installation when done by someone else #590

@BSick7

Description

@BSick7

When onboarding clients, I attempt to install the Nullstone App into the customer's GitHub organization to grant Nullstone access to their repositories.
This sends a request to the administrator.
Once they complete the operation, Nullstone should see their repositories, but it doesn't.

After I did this recently, I noticed that there isn't a record in org_installation or github_app_installations.

This error showed up in OTEL traces:

github.com/BSick7/go-api/errors.ApiError: An error occurred finalizing the setup of the Github App.

I found this in the logs:

enigma/main/e4c05415097f4cdea72d0bcf89754eef] Mon Mar 23 11:21:50 EDT level=ERROR msg="unable to find the installation id in the list of user installations" method=GET scheme=https host=api.nullstone.io path=/github_installations/callbacks error=<nil>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions