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
Describe the need
github_repository_rulesetto gain support fortarget = "push"so that push controls can be added.This would also imply
rulesupport forfile_path_restriction,max_file_path_length,file_extension_restrictionandmax_file_size. Thepushrules don't support the normalbranchandtagrules, 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
Code of Conduct