You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEAT]: Support GitHub repository custom properties #1956
GitHub just announced the feature of GitHub repository custom properties. We can use the information of custom properties to apply rules to repository in GitHub organization(s). It would be good to support the feature in the terraform provider as well. By doing that, we will be able to manage custom properties and rule sets in terraform.
Reacted by Aaron C, Chris Gatt, Steve Hipwell, Alexey Alekhin, Vivek, François Proulx, Jakub Jezierski, Staffan Forsell, Ian Muscat, Bnaya Harel and 80 more
Hello,
I'd like to be able to manage custom properties during repo creation as well.
The API allows to provide properties just like it allows to provide Topics when creating a repository.
Do you think we could imagine adding the feature in your PR to implement a full custom property support or do you prefer me to open an additional pull request to handle it?
Hello, I'd like to be able to manage custom properties during repo creation as well. The API allows to provide properties just like it allows to provide Topics when creating a repository. Do you think we could imagine adding the feature in your PR to implement a full custom property support or do you prefer me to open an additional pull request to handle it?
For anyone interested... To set custom properties on repository using GitHub App, Read-Write permission is needed on organization; yes, really.
The missing permission on the App will get you:
│ Error: PATCH https://api.github.com/repos/{owner}/{repo}/properties/values: 422 Actor doesn't have permissions to edit properties [{propName}] []
│
│ with github_repository_custom_property.this["{propName}"],
│ on custom_properties.tf line 8, in resource "github_repository_custom_property" "this":
│ 8: resource "github_repository_custom_property" "this" {
Reacted by Tomas Dabašinskas, Federico Martin Berbara and Zach Cohen
For anyone interested... To set custom properties on repository using GitHub App, Read-Write permission is needed on organization; yes, really.
The missing permission on the App will get you:
│ Error: PATCH https://api.github.com/repos/{owner}/{repo}/properties/values: 422 Actor doesn't have permissions to edit properties [{propName}] []
│
│ with github_repository_custom_property.this["{propName}"],
│ on custom_properties.tf line 8, in resource "github_repository_custom_property" "this":
│ 8: resource "github_repository_custom_property" "this" {
Hey @meridius how are you ? Which permission of organization I need to set on my GitHub App then ? Do you know why read-write on the custom propertie isn't enough ? Is a bug ?
Activity
kfcampbell commentedon Oct 16, 2023
Unfortunately, this feature is not released on the API yet. Once support is added in the API, we can implement it in the provider.
usmonster commentedon Nov 22, 2023
Looks like a REST API is in public beta now. Is that enough to get started? Thanks!
kfcampbell commentedon Nov 22, 2023
Ideally there would be more than just a GET. We could make a data source with the existing endpoint, but not a full resource.
laughedelic commentedon Nov 22, 2023
There are more endpoints here (incl. creation): https://docs.github.com/en/rest/orgs/custom-properties?apiVersion=2022-11-28
kfcampbell commentedon Nov 22, 2023
Ahh my mistake, thanks for correcting me!
roeishuster commentedon Dec 13, 2023
Hey, do you guys plan on adding this in an upcoming provider update?
kfcampbell commentedon Jan 5, 2024
GitHub's SDK team unfortunately does not have the bandwidth to take this on ourselves, though we're very receptive of PRs!
12 remaining items
chapurlatn commentedon Dec 3, 2024
Hello,
I'd like to be able to manage custom properties during repo creation as well.
The API allows to provide properties just like it allows to provide Topics when creating a repository.
Do you think we could imagine adding the feature in your PR to implement a full custom property support or do you prefer me to open an additional pull request to handle it?
hikerspath commentedon Dec 4, 2024
Here also...
felixlut commentedon Dec 9, 2024
Another PR. #2316 is big enough as it is
dunnedeal commentedon Jan 14, 2025
Any update on this feature request? Looks like progress has been made on #2316 but stalled for the past few weeks...
nnellanspdl commentedon Feb 12, 2025
This was released in 6.5.0
https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_custom_property
meridius commentedon Apr 10, 2025
For anyone interested... To set custom properties on repository using GitHub App, Read-Write permission is needed on organization; yes, really.
The missing permission on the App will get you:
FedeBerbara commentedon Aug 29, 2025
Hey @meridius how are you ? Which permission of organization I need to set on my GitHub App then ? Do you know why read-write on the custom propertie isn't enough ? Is a bug ?
meridius commentedon Aug 30, 2025
Hey @FedeBerbara, as I wrote - your GH App needs to have R/W for custom props on Org.