diff --git a/github/resource_github_organization_ruleset.go b/github/resource_github_organization_ruleset.go index daede5652..d057a8adb 100644 --- a/github/resource_github_organization_ruleset.go +++ b/github/resource_github_organization_ruleset.go @@ -57,9 +57,10 @@ func resourceGithubOrganizationRuleset() *schema.Resource { 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.", }, "actor_type": { - Type: schema.TypeString, - Required: true, - Description: "The type of actor that can bypass a ruleset. See https://docs.github.com/en/rest/orgs/rules for more information", + Type: schema.TypeString, + Required: true, + ValidateFunc: validation.StringInSlice([]string{"Integration", "OrganizationAdmin", "RepositoryRole", "Team", "DeployKey"}, false), + Description: "The type of actor that can bypass a ruleset. See https://docs.github.com/en/rest/orgs/rules for more information", }, "bypass_mode": { Type: schema.TypeString,