Skip to content

[FEAT]: Support Push Rulesets #2394

Closed

Description

@srgustafson8

Describe the need

GitHub launched push rules for rulesets to GA recently where you can allow only a certain team or group to push particular paths or files. The API appears to support push rule targets for both Repository and Organisation.

It would be great to be able to support creating and managing these with terraform. This is depends on google/go-github#3274 adding support in the SDK.

SDK Version

No response

API Version

No response

Relevant log output

No response

Code of Conduct

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

Activity

  1. added
    Status: Triage
    Type: Feature
    on Sep 20, 2024
  2. akmalharith commented on Sep 27, 2024

    @akmalharith

    Was this ever released #2351?

  3. srgustafson8 commented on Sep 27, 2024

    @srgustafson8
    ContributorAuthor

    @akmalharith I was wrong in my original assessment, support for push existed in the SDK but not for 3/4 of the rule types for push rules. I have opened a PR to add them to the SDK then will pick this up once merged and upgraded.

  4. kfcampbell commented on Sep 27, 2024

    @kfcampbell
    Contributor

    @akmalharith FWIW #2351 was released as part of v6.3.0.

  5. removed
    Status: Triage
    on Sep 27, 2024
  6. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Sep 27, 2024
  7. TheArtheist commented on Oct 10, 2024

    @TheArtheist

    google/go-github#3274 is part of the version v66.0.0 which is now released. I have created #2419.

  8. kieran-lowe commented on Oct 21, 2024

    @kieran-lowe

    Would be awesome to get this merged in!

  9. jimsheldon commented on Nov 25, 2024

    @jimsheldon

    While go-github is now updated to v66.0.0, changes are still required in github/resource_github_organization_ruleset.go and github/resource_github_repository_ruleset.go (at least).

    Rules such as max_file_size and file_path_restriction need to be added.

    There seems to be other work in progress, such as #2415 for file_path_restriction, but that is for repository rulesets.

  10. stevehipwell commented on Nov 25, 2024

    @stevehipwell
    Collaborator

    @jimsheldon have you requested this be covered as part of #2415?

  11. grahamhar commented on Dec 2, 2024

    @grahamhar
    Contributor

    @jimsheldon @stevehipwell I have added the max_file_size restriction to #2415. As I do not have admin access to an organisation with paid features I am uncomfortable adding features I can't test.

  12. adrian-85 commented on Dec 19, 2024

    @adrian-85

    Any update on when push restrictions will be added? Specifically looking for the file type restriction, and as of v6.4.0 seems there is still no push support, at least according to the docs.

  13. grahamhar commented on Dec 22, 2024

    @grahamhar
    Contributor

    @adrian-85 I have added this to the PR related #2415 for you, I don't need this feature myself which is why I didn't add it originally. Please upvote the PR to help get it reviewed.

  14. adrian-85 commented on Jan 6, 2025

    @adrian-85

    I added a thumbs up to your last comment in the PR conversation, is that what you meant by upvote?

  15. arun-i-gilead commented on Mar 19, 2025

    @arun-i-gilead

    Hi Team any update on this

  16. EricDales commented on Apr 1, 2025

    @EricDales
    Contributor

    This is a most wanted feature on our side

  17. Adarsh1999 commented on May 14, 2025

    @Adarsh1999

    Hi Team, any update on this feature? It's been a long-awaited feature.

  18. Coalery commented on Jun 27, 2025

    @Coalery

    Any updates?

  19. moved this from Backlog to On Deck in Terraform Provideron Oct 14, 2025
  20. moved this from On Deck to In Progress in Terraform Provideron Oct 27, 2025
  21. moved this from In Progress to In Review in Terraform Provideron Oct 27, 2025
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

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions