Skip to content

[FEAT]: Enable app installation for user repository #2468

@M0NsTeRRR

Description

@M0NsTeRRR

Describe the need

The github_app_installation_repository currently looks for an organization, but the GitHub API endpoint also supports users.

A GitHub App installation refers to any user or organization account that has installed the app.

https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#about-github-app-installations

Tested with curl and it works (PAT token is required).
https://docs.github.com/en/rest/apps/installations?apiVersion=2022-11-28#add-a-repository-to-an-app-installation

SDK Version

No response

API Version

No response

Relevant log output

I'm using pulumi so maybe the output is different :)

error:   sdk-v2/provider2.go:520: sdk.helper_schema: this resource can only be used in the context of an organization, "m0nsterrr" is a user: provider=github@6.3.2
    error: 1 error occurred:
        * this resource can only be used in the context of an organization, "m0nsterrr" is a user

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions