Skip to content

[FEAT]: github_repository_ruleset to support push target #2714

@simonnpassiv

Description

@simonnpassiv

Describe the need

github_repository_ruleset to gain support for target = "push" so that push controls can be added.

This would also imply rule support for file_path_restriction, max_file_path_length, file_extension_restriction and max_file_size. The push rules don't support the normal branch and tag rules, and vice-versa.

One can use https://docs.github.com/en/rest/repos/rules?apiVersion=2022-11-28#get-a-repository-ruleset on a web created push based target ruleset for an easier view of the data structure.

SDK Version

No response

API Version

2022-11-28

Relevant log output

│ Error: expected target to be one of ["branch" "tag"], got push
│
│   with github_repository_ruleset.controls,
│   on repository.tf line 81, in resource "github_repository_ruleset" "controls":
│   81:   target      = "push"

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    Status

    ✅ Done

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions