Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions website/docs/r/organization_ruleset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ resource "github_organization_ruleset" "example" {
operator = "starts_with"
pattern = "ex"
}

required_workflows {
do_not_enforce_on_create = true
required_workflow {
repository_id = 1234
path = ".github/workflows/ci.yml"
ref = "main"
}
}
}
}
```
Expand Down Expand Up @@ -163,6 +172,8 @@ The `rules` block supports the following:

#### rules.required_workflows ####

* `do_not_enforce_on_create` - (Optional) (Boolean) Allow repositories and branches to be created if a check would otherwise prohibit it. Defaults to `false`.

* `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))

#### rules.required_workflows.required_workflow ####
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/repository_ruleset.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ The `rules` block supports the following:

#### rules.required_code_scanning ####

* `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))
* `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))

#### rules.required_code_scanning.required_code_scanning_tool ####

Expand Down
Loading