Closed ritik-gupta-bzy closed 7 months ago
To provide additional input, I receive this same 404 error with 'internal' templates.
Here is the setup:
This leads me to believe it might not be due to the visibility setting but perhaps it is an Enterprise Managed User issue?
Sample usage:
resource "github_repository" "this" {
name = local.repo_name
description = "Repository for ${var.app_name}. This ...."
visibility = var.repo_visibility # internal
template {
owner = var.org
repository = "starterTemplate"
include_all_branches = false
}
}
I just tried to use the provider to create a repo from a template (version 5.42) and it created the repo from the template as expected.
Unsure if there are other nuances that @michaelkacher is alluding to, or if this was unexpectedly fixed in the past month or 2.
I also cannot reproduce the issue, and I'm going to close it accordingly. Please feel free to comment/reopen if this still persists.
Describe the need
Hi, I am not able to create a new repository using a private template. It is throwing a 404 error.
Changed template
POST https://api.github.com/repos/ORG/REPO_NAME/generate: 404 Not Found []
This is my code for reference:
The template repo is marked as a template on github:
SDK Version
No response
API Version
No response
Relevant log output
Code of Conduct