Skip to content

Implement data source to retrieve GitHub apps #1009

Closed

Description

@gnarea

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)

Activity

  1. g-chouzadjian commented on Aug 29, 2022

    @g-chouzadjian
    Contributor

    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.

  2. patrickmarabeas commented on Sep 2, 2022

    @patrickmarabeas
    Contributor

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

  3. kfcampbell commented on Oct 27, 2022

    @kfcampbell
    Contributor

    Closing via #1268.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    New data sourceType: Feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions