Skip to content

Commit b9f5a19

Browse files
committed
updates docs for PR #2488
1 parent 20c7f40 commit b9f5a19

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

website/docs/r/organization_ruleset.html.markdown

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ resource "github_organization_ruleset" "example" {
4545
operator = "starts_with"
4646
pattern = "ex"
4747
}
48+
49+
required_workflows {
50+
do_not_enforce_on_create = true
51+
required_workflow {
52+
repository_id = 1234
53+
path = ".github/workflows/ci.yml"
54+
ref = "main"
55+
}
56+
}
4857
}
4958
}
5059
```
@@ -163,6 +172,8 @@ The `rules` block supports the following:
163172

164173
#### rules.required_workflows ####
165174

175+
* `do_not_enforce_on_create` - (Optional) (Boolean) Allow repositories and branches to be created if a check would otherwise prohibit it. Defaults to `false`.
176+
166177
* `required_workflow` - (Required) (Block Set, Min: 1) Actions workflows that are required. Multiple can be defined. (see [below for nested schema](#rules.required_workflows.required_workflow))
167178

168179
#### rules.required_workflows.required_workflow ####

website/docs/r/repository_ruleset.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ The `rules` block supports the following:
206206

207207
#### rules.required_code_scanning ####
208208

209-
* `required_code_scanning_tool` - (Required) (Block Set, Min: 1) Actions code scanning tools that are required. Multiple can be defined. (see [below for nested schema](#rules.required_workflows.required_code_scanning_tool))
209+
* `required_code_scanning_tool` - (Required) (Block Set, Min: 1) Actions code scanning tools that are required. Multiple can be defined. (see [below for nested schema](#rules.required_code_scanning.required_code_scanning_tool))
210210

211211
#### rules.required_code_scanning.required_code_scanning_tool ####
212212

0 commit comments

Comments
 (0)