github / safe-settings

ISC License
589 stars 140 forks source link

GitHub App registration #326

Open martinm82 opened 1 year ago

martinm82 commented 1 year ago

Prerequisites:

Yes, once an app is installed in the organization you can configure it and "install" it on specific repositories.

New Feature

Within an organization, teams usually create GitHub Apps for their CI/CD workflows. These apps need to be transferred to the organization owners. Once this is done, installing the app onto specific repositories can only be done by organization owners.

It would be desired if teams could request the "installation" of the apps by themselves through IaC, in this case safe-settings configurations.

This is for example implemented in the Terraform GitHub Provider: https://registry.terraform.io/providers/integrations/github/latest/docs/resources/app_installation_repository

martinm82 commented 1 year ago

I have been looking at the authentication part and currently GitHub App authentication is not supported. So the Probot app would need to authenticate using an access token. Would that be actually feasible?

martinmigasiewicz-tomtom commented 1 year ago

@decyjphr have you thought about this as a use case for safe-settings? WDYT about it? Is this achievable? I probably could spend some time to look into it.

decyjphr commented 1 year ago

Sorry, @martinm82 I haven't looked at it. But I will look at this today and ask others who would be more knowledgeable.

AndreyNautilus commented 1 year ago

Sorry for reminding @decyjphr , but is there any progress?