Skip to content

Commit f549d17

Browse files
tiulpinnickfloyd
andauthored
fix: add support for DeployKey actor type in repository and organization rulesets (#2748)
Co-authored-by: Nick Floyd <[email protected]>
1 parent 8bd287c commit f549d17

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

github/resource_github_organization_ruleset.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ func resourceGithubOrganizationRuleset() *schema.Resource {
5757
Description: "The ID of the actor that can bypass a ruleset. When `actor_type` is `OrganizationAdmin`, this should be set to `1`. Some resources such as DeployKey do not have an ID and this should be omitted.",
5858
},
5959
"actor_type": {
60-
Type: schema.TypeString,
61-
Required: true,
62-
Description: "The type of actor that can bypass a ruleset. See https://docs.github.com/en/rest/orgs/rules for more information",
60+
Type: schema.TypeString,
61+
Required: true,
62+
ValidateFunc: validation.StringInSlice([]string{"Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"}, false),
63+
Description: "The type of actor that can bypass a ruleset. See https://docs.github.com/en/rest/orgs/rules for more information",
6364
},
6465
"bypass_mode": {
6566
Type: schema.TypeString,

0 commit comments

Comments
 (0)