terraform-provider-github
terraform-provider-github copied to clipboard
[BUG]: `github_repositories` data source query not working with custom properties
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
- integrations/github/5.42.0/linux_amd64/terraform-provider-github_v5.42.0
Affected Resource(s)
- github_repositories data source
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
- Create a custom property with:
- type single select
- Require this property for all repositories
- Change this custom property for some repositories
- Use the github_repositories data source to query the repositories using the custom property e.g. query = "org:my-org props.my-custom-property:my-custom-property-value"
Debug Output
No response
Panic Output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
curling the github api with custom properties works just fine and also it works in GitHub UI