Block + ref components on public GitHub repos
This commit is contained in:
@@ -46,8 +46,8 @@ variable "ruleset" {
|
||||
default = {}
|
||||
|
||||
validation {
|
||||
condition = length(setintersection(keys(var.ruleset), ["branch-protection", "required-checks", "tag-protection"])) == 0
|
||||
error_message = "Ruleset names branch-protection, required-checks and tag-protection are reserved for generated rulesets."
|
||||
condition = length(setintersection(keys(var.ruleset), ["branch-protection", "required-checks", "tag-protection", "ref-names-branch", "ref-names-tag"])) == 0
|
||||
error_message = "Ruleset names branch-protection, required-checks, tag-protection, ref-names-branch and ref-names-tag are reserved for generated rulesets."
|
||||
}
|
||||
|
||||
validation {
|
||||
|
||||
Reference in New Issue
Block a user