Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect validation on github_repository.topic field #999

Closed
danielpops opened this issue Dec 4, 2021 · 1 comment
Closed

Incorrect validation on github_repository.topic field #999

danielpops opened this issue Dec 4, 2021 · 1 comment

Comments

@danielpops
Copy link
Contributor

danielpops commented Dec 4, 2021

Terraform Version

0.13.7

Affected Resource(s)

Please list the resources as a list, for example:

  • github_repository

The regex validation on the topic field does not work for single-character topics (e.g. the letter "a" or "c")

Terraform Configuration Files

resource "github_repository" "repo" {
  name        = "Test" 
  description = "Single Letter topics will fail"

  topics = [
    "a"
  ]

Expected Behavior

Plan should succeed

Actual Behavior

Plan fails, with error:

Error: invalid value for topics.0 (must include only lowercase alphanumeric characters or hyphens and cannot start with a hyphen and consist of 35 characters or less)

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform plan

https://regex101.com/r/vdLOLS/2

@danielpops
Copy link
Contributor Author

Fixed by #996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant