integrations / terraform-provider-github

Terraform GitHub provider
https://www.terraform.io/docs/providers/github/
MIT License
886 stars 726 forks source link

[BUG]: `github_repositories` data source query not working with custom properties #2161

Open anttijman opened 6 months ago

anttijman commented 6 months ago

Expected Behavior

The query should only return the repositories with custom property is_confidential set to no

Actual Behavior

The query returned all of my org's repositories despite whether the custom property is_confidential is yes or no

Terraform Version

Terraform version: 1.7.2

Affected Resource(s)

Terraform Configuration Files

# Every repo has custom property is_confidential. It is set to yes by default. This will return every repo that is not confidential
data "github_repositories" "all_but_confidential" {
  query = "org:<my-org> props.is_confidential:no"
}

Steps to Reproduce

Debug Output

No response

Panic Output

No response

Code of Conduct

anttijman commented 6 months ago

curling the github api with custom properties works just fine and also it works in GitHub UI