'gitlab_group_label' fails when using CSS color names

Bug Report

When I try to create a label on a group using a CSS color name as stated possible in the documentation, the label is correctly created but terraform crashes with a "Provider produced inconsistent result after apply" message.

If I run tf plan afterwards, the label is marked as tainted and will be planned for an update

Relevant Terraform Configuration

resource "gitlab_group_label" "label" {
    group       = gitlab_group.group.id
    name        = "label-test"
    color       = "forestgreen"
    description = "Label test label"
}

Relevant Terraform Command

terraform apply -auto-aprove

Relevant Log Output

These are the debug logs of the `terraform` command output:

│ Error: Provider produced inconsistent result after apply

│ When applying changes to gitlab_group_label.label, provider "provider[\"registry.terraform.io/gitlabhq/gitlab\"]" produced an unexpected new value: .color: was cty.StringVal("forestgreen"), but now
│ cty.StringVal("#228B22").

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Additional Details

  • GitLab Terraform Provider Version: v17.11.0
  • GitLab Instance Version: gitlab.com (ultimate plan)
  • Terraform Version: v1.11.4