Skip to content

[MAINT]: Update go-github #2778

Closed
3 of 3 issues completed
Closed

Description

@nickfloyd

Our provider is currently @ github.com/google/go-github/v66 v66.0.1-0.20241027130611-9e5757d5a766 and the tip of go-github is currently @ v76.0.0.

Massive Breaking Changes - 19 major breaking changes across 10 releases

  • Repository Rulesets (v69) - Extensive type renaming (Ruleset* → RepositoryRuleset*)
  • Actions Billing APIs (v76) - Complete removal of endpoints
  • Required Workflows (v72) - Support completely removed
  • Parameter Passing (v69, v75) - Methods changed from by-reference to by-value
  • Method Renames (v76) - Edit* → Update* for permissions

Impact:

  • Dev effort might be high
  • High complexity due to repository ruleset refactoring
  • State migrations required for backward compatibility
  • Potential feature removal (Actions Billing, Required Workflows)

Migration strategy:

  • Prep - Audit current usage patterns
  • Address core breaking changes - Update import paths, types, methods, etc...
    • Loop on each version to slowly make the changes starting with v67 then ++
  • State Migrations - Implement schema migrations like the existing repository migration
  • Testing & Validation - update and add tests as well as attempt to get this batch done
  • Docs and comms

Key challenges:

  • Repository Rulesets require the most work due to 20+ type renames
  • State migrations needed to preserve existing Terraform state
  • While we'll do our best to maintain backward compatibility this will be considered a breaking change
  • API removals may require feature deprecation

Code of Conduct

  • I agree to follow this project's Code of Conduct

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    Status: Triage
    Type: Maintenance
    on Oct 16, 2025
  2. moved this from Backlog to On Deck in Terraform Provideron Oct 16, 2025
  3. added theissue type on Oct 16, 2025
  4. moved this from On Deck to In Progress in Terraform Provideron Oct 16, 2025
  5. nickfloyd commented on Oct 20, 2025

    @nickfloyd
    ContributorAuthor

    We are currently 10 versions behind with a multitude of breaking changes. We'll be taking an iterative approach here and do the updates one version at a time.

  6. moved this from In Progress to On Deck in Terraform Provideron Oct 20, 2025
  7. moved this from On Deck to In Progress in Terraform Provideron Oct 20, 2025
  8. acouvreur commented on Oct 22, 2025

    @acouvreur
    Contributor

    We are currently 10 versions behind with a multitude of breaking changes. We'll be taking an iterative approach here and do the updates one version at a time.

    Do you need help with that issue or are you working this on your own?

  9. nickfloyd commented on Oct 23, 2025

    @nickfloyd
    ContributorAuthor

    Do you need help with that issue or are you working this on your own?

    @acouvreur Help would be amazing! If you start something before I do please allow contributor access to your fork/branch and we can all work on it together. ❤️

  10. 2 remaining items

  11. moved this from In Progress to On Deck in Terraform Provideron Nov 10, 2025
  12. removed theissue type on Nov 12, 2025
  13. MrMon3y commented on Nov 18, 2025

    @MrMon3y

    I wanted to bring awareness to GitHub's new "required review by specific teams" feature, announced on November 3, 2025. This allows enforcing team-based approvals for specific file patterns in repository rulesets, providing more granular control than traditional CODEOWNERS.

    Key Benefits:

    • Protect critical code by enforcing strict reviews for sensitive files.
    • Scale policies across repositories, organizations, or enterprises.
    • Target specific paths and require a set number of reviews from specified teams.

    The google/go-github client has been updated to support this in v79.0.0 (see PR #3811). I believe updating the Terraform provider to leverage this would enable configuration of required_reviewers in github_repository_ruleset resources.

    This feature is in beta but stable.

    References:

    Questions:

    • Thoughts on updating the Terraform provider to v79.0.0?
    • Is there a more direct path to get support for this feature?
  14. added this to the v7.0.0 Release milestone on Nov 20, 2025
  15. moved this from On Deck to In Progress in Terraform Provideron Nov 20, 2025
  16. removed
    Status: Triage
    on Jan 7, 2026
  17. stevehipwell commented on Jan 7, 2026

    @stevehipwell
    Collaborator

    Completed by #3050.

  18. moved this from In Progress to Done in Terraform Provideron Jan 7, 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: Maintenance

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions