Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement data source to retrieve GitHub apps #1009

Closed
gnarea opened this issue Dec 13, 2021 · 3 comments
Closed

Implement data source to retrieve GitHub apps #1009

gnarea opened this issue Dec 13, 2021 · 3 comments
Labels
New data source Type: Feature New feature or request

Comments

@gnarea
Copy link

gnarea commented Dec 13, 2021

Terraform Version

1.1.0

Expected Behavior

A data source to retrieve the node_id of a GitHub app, so that I can use it in the github_branch_protection resource.

Actual Behavior

There's no such data source. I have to manually query the GitHub API to get the node_id; e.g.: https://api.github.com/apps/github-actions

References

#615 (comment)

@jcudit jcudit added Type: Feature New feature or request New data source labels Jan 7, 2022
@g-chouzadjian
Copy link
Contributor

g-chouzadjian commented Aug 29, 2022

I've had a crack here: #1268. Verified this works for public GitHub apps, however I'm getting 403's when attempting to retrieve private apps even my _provider uses the app installation auth method.

@patrickmarabeas
Copy link
Contributor

Confirmed by GitHub that private Apps can only be queried by the App itself, and not others.

@kfcampbell
Copy link
Member

Closing via #1268.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New data source Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants