Skip to content

feature request: Add support for 'public' attribute on github pages configuration #1045

Description

@pkwarren

We'd like to use the Github pages functionality of the terraform provider, however currently it doesn't support the github pages 'public' option: https://github.com/google/go-github/blob/178169fc04bc4a05ca48f98709cdd02ab5b556e3/github/repos_pages.go#L21

Terraform Version

v1.1.4

Affected Resource(s)

  • github_repository

Terraform Configuration Files

resource "github_repository" "example" {
  name        = "example"
  description = "My awesome web page"
  private = true
  pages {
    source {
      branch = "main"
      path   = "/docs"
    }
    # TODO: Doesn't work
    public = false
  }
}

Expected Behavior

Should be able to configure 'public = false' to limit visibility of github pages.

Actual Behavior

Option not yet supported.

Activity

  1. pkwarren commented on Jan 21, 2022

    @pkwarren
    Author

    It looks like this will require fixes to upstream GitHub module: google/go-github#2261

  2. btkostner commented on Jan 28, 2022

    @btkostner
    Contributor

    Looks like it has been included upstream and will be included in the next release

  3. btkostner commented on Mar 7, 2022

    @btkostner
    Contributor
  4. btkostner commented on Apr 11, 2022

    @btkostner
    Contributor

    This issue should not yet be closed

  5. kfcampbell commented on Apr 28, 2022

    @kfcampbell
    Contributor

    Oh I'm sorry! Thanks for catching this @btkostner.

  6. github-actions commented on Jan 24, 2023

    @github-actions

    👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

  7. added
    Status: Stale
    on Jan 24, 2023
  8. btkostner commented on Jan 24, 2023

    @btkostner
    Contributor

    Currently waiting for PR to merge

  9. removed
    Status: Stale
    on Jan 25, 2023
  10. ViacheslavKudinov commented on Feb 17, 2023

    @ViacheslavKudinov
    Contributor

    We need this feature! 🙏🏻

  11. dweaver33 commented on Apr 7, 2023

    @dweaver33

    image

  12. calebworks commented on Sep 21, 2023

    @calebworks

    Any updates on this?

  13. 5 remaining items

  14. BartolottiLuca commented on Jan 20, 2025

    @BartolottiLuca

    Hello, I've give this feature request a go, anyone know if I have to poke someone to get it reviewed or is just a matter of waiting?
    #2540

  15. pdewilde commented on Aug 14, 2025

    @pdewilde

    +1 Would like this feature

  16. added theissue type on Feb 11, 2026
  17. moved this from Backlog to In Progress in Terraform Provideron Feb 19, 2026
  18. added
    Type: Feature
    on Mar 25, 2026
  19. added this to the v6.12.0 milestone on Apr 18, 2026
  20. modified the milestones: v6.12.0, v6.13.0 on Apr 20, 2026
  21. moved this from In Progress to Done in Terraform Provideron Apr 22, 2026
  22. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Apr 22, 2026
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

    Type: Feature

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions