Skip to content

feat: Add permissions, events, client_id and external_url to github_app data source - #3721

Closed
vibbix wants to merge 1 commit into
integrations:mainfrom
vibbix:feature/data-github-app-permissions-events
Closed

vibbix wants to merge 1 commit into
integrations:mainfrom
vibbix:feature/data-github-app-permissions-events

Conversation

@vibbix

@vibbix vibbix commented Nov 6, 2026 •

Copy link
Copy Markdown

Resolves #3722
Resolves #3395


Before the change?

  • github_app only returns id, name, description, node_id and slug, although GET /apps/{app_slug} also returns the app's permissions, events, client ID and homepage URL.
  • flattenInstallationPermissions copies 30 of the 88 fields on github.InstallationPermissions, so github_organization_app_installations leaves permissions such as organization_administration, members and organization_custom_roles out of its permissions map.

After the change?

  • github_app adds client_id, external_url, permissions (map) and events (list).
  • flattenInstallationPermissions round-trips the struct through JSON, so every permission go-github decodes is kept, and it returns an error instead of dropping one.
  • New unit test for flattenInstallationPermissions. TestAccGithubAppDataSource now checks the new attributes and passes in anonymous mode.

Pull request checklist

  • Schema migrations have been created if needed (example)
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

No migration needed: every new attribute is computed on a data source.

Does this introduce a breaking change?

Please see our docs on breaking changes to help!

  • Yes
  • No

github_organization_app_installations returns more keys in permissions than before. Nothing that used to be there is removed.


@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown

👋 Hi, and thank you for this contribution!

This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.

You can help us prioritize by joining the discussion on open issues and PRs, sharing details on the changes you need, and reviewing other contributions.


🤖 This is an automated message.

@github-actions github-actions Bot added the Type: Feature New feature or request label Nov 6, 2026
@vibbix vibbix changed the title [FEAT]: Expose permissions, events, client_id and external_url on the github_app data source feat: Add permissions, events, client_id and external_url to github_app data source Nov 6, 2026
@vibbix

vibbix commented Nov 8, 2026

Copy link
Copy Markdown
Author

google/go-github@f869cf9
Related fixes are here, i think sometime in the next week or so, they will do a version bump which brings these in.

@vibbix

vibbix commented Nov 12, 2026

Copy link
Copy Markdown
Author

google/go-github@f869cf9 has been merged, hopefully an update is cut in a couple days so this can use the new fields

@robert-crandall

Copy link
Copy Markdown
Contributor

Thanks for putting this PR together and taking the time to contribute!

We're temporarily moving to an issue-first model (see CONTRIBUTING.md) where only collaborators can open PRs while we work through the backlog. Because of that, I'm going to close this PR for now.

I've linked it on #3395 and #3722 so we don't lose your work or context when we pick those issues up. Feel free to add a 👍 or any extra notes there to help us prioritize them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Feature New feature or request

Projects

None yet

2 participants