feat: add data sources for listing GitHub App installations in an organization#2573
Conversation
|
👋 Hey Friends, this pull request has been automatically marked as |
deiga
left a comment
There was a problem hiding this comment.
Hey 👋
Thank you for your contribution!
I've requested a few changes to make this fit into the provider even better :)
|
@atilsensalduz Please rebase and go through the comments |
Hey @deiga , apologies for the late reply. I somehow missed this PR. Thanks so much for the review! I’ve worked through your suggestions. |
|
Hi @deiga , I've changed the PR according to your suggestions. Could you please take a look again when you have time? Thanks in advance. |
|
@atilsensalduz could you please rebase this PR? |
e627a5e to
932e047
Compare
stevehipwell
left a comment
There was a problem hiding this comment.
Thanks for the PR @atilsensalduz, I've added a couple of comments. Could you also add support for single_file_paths, created_at & updated_at.
|
@atilsensalduz this is looking good. Have you run the test locally, if so could you please attach a screenshot of the output? |
Hi @stevehipwell, I've added test outputs as a screenshot.
|
|
Please rebase |
adc05f1 to
dfc63ea
Compare
Hey @deiga , I've rebased now. |
|
Please run tests and linters and fix any issues |
Hey @deiga , I ran tests and linters, everything looks good in my local |
|
Hey @stevehipwell , thanks for the suggestion to use |
stevehipwell
left a comment
There was a problem hiding this comment.
Thanks @atilsensalduz, nearly there.
34d65c3 to
9989ff0
Compare
|
I've fixed linting issue. Could you please rerun the CI? @stevehipwell |



Resolves #2966
Resolves #2570
This PR introduces a new data source, github_app_installations, to enable listing all installed GitHub Apps within an organization. This addition enhances integration with existing resources such as github_app_installation_repository, providing better automation and management capabilities for GitHub App permissions.
What's New?
New Data Source: github_app_installations
Allows fetching all installed GitHub Apps in an organization:
data "github_organization_app_installations" "all_apps" {}Example Use Case:
This data source can be integrated with the github_app_installation_repository resource to manage app permissions on specific repositories:
API Reference: https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-app-installations-for-an-organization
Related Issue: #2570