-
Notifications
You must be signed in to change notification settings - Fork 732
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
Failed setting visibility=internal on a newly created repo from template #925
Comments
Basically a me too post - but just to add that I get the same result from the same TF config using 1.0.7 too |
The issue seems to be due to a limitation in the Github API which only supports public and private creation from a template: https://docs.github.com/en/rest/reference/repos#create-a-repository-using-a-template Of course, it might be nice if terraform would give and error or at least warning when trying to set visibility to internal, instead of sillently ignoring it: terraform-provider-github/github/resource_github_repository.go Lines 329 to 330 in 98dddd2
|
Seems like the Github GraphQL API does support creating internal repos from templates: https://docs.github.com/en/graphql/reference/input-objects#clonetemplaterepositoryinput |
Hoping there is a way to create 'internal' repo's from template repo using Terraform...is there a workaround for the API limitation? Or a flat out no go? |
👋 Hey Friends, this issue has been automatically marked as |
How can I set the I'd appreciate a feedback from GitHub on the matter. |
@damir-dezeljin apologies, the SDK team is spread pretty thin at the moment. We've got a little bit of content here about our prioritization process, but realistically, the best way to address this problem is to submit a PR following our contributing guidelines to this project. We appreciate all contributions! |
Hi there,
Terraform Version
1.0.5
Affected Resource(s)
Terraform Configuration Files
Debug Output
Gist: https://gist.github.com/damir-dezeljin/e9de28e11aa7de8d7a60fc2e123794f6
NOTE: I removed the sensible parts from the logs. Still, I think the logs shows what's the actual issue. Let me recap it here:
Internal
.Internal
as well.Private
and the visibility setup phase fails with error 422.Panic Output
n/a
Expected Behavior
I'd expect a new repo with visibility
Internal
being created.Actual Behavior
The
terraform apply
fails with error code422
on visibility change step.Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Internal
Internal
out of the template one.terraform apply
.Important Factoids
References
n/a
The text was updated successfully, but these errors were encountered: