# 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
Expected Behavior
The query should only return the repositories with custom property
is_confidential
set to noActual Behavior
The query returned all of my org's repositories despite whether the custom property
is_confidential
is yes or noTerraform Version
Terraform version: 1.7.2
Affected Resource(s)
Terraform Configuration Files
Steps to Reproduce
Debug Output
No response
Panic Output
No response
Code of Conduct