You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT]: github_repository_ruleset to support push target #2714
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.
│ 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
Reacted by Terry Ewing, marco-ohara, Marco de Martinis, Trevor Guidry, Francisco Ramon and waldizzo
I need to protect a workflow from changes, that checks that only PRs to main are created from develop branch. It would be great to have push rulesets implemented in the provider.
Activity
tewing-pm commentedon Aug 12, 2025
I found this issue while writing a duplicate issue. push rulesets are available via the api but not the terraform resource.
mdemartinis commentedon Aug 22, 2025
I need to protect a workflow from changes, that checks that only PRs to main are created from develop branch. It would be great to have push rulesets implemented in the provider.