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
The PAT used to execute this has all access rights that are possible.
Actual Behavior
When creating an internal repo based on a template. No exception should come up.
Terraform Version
Terraform 1.10.3
Github provider: 6.5.0
Affected Resource(s)
github_repository
Terraform Configuration Files
resource"github_repository""repo" {
name="abc"description="test"visibility="internal"auto_init=truedelete_branch_on_merge=truehas_downloads=true# If we don't specify the following 4 properties, tf will see updateshas_issues=truehas_projects=truehas_wiki=truevulnerability_alerts=truecontent {
owner="xyz"repository="xyz-template"
}
}
Steps to Reproduce
(on a global level it's not allowed to create private repositories)
terraform apply
Debug Output
Acquiring state lock. This may take a few moments...
module.github_repo["abc"].github_repository.repo: Creating...
Error: POST https://api.github.com/repos/xyz/xyz-template/generate: 403 You'll need a different OAuth scope to create a private repository. Please see the documentation for full details. []
Panic Output
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Expected Behavior
When creating an internal repo, this works great.
But when creating an internal repo based on a template we get the following error:
Error: POST https://api.github.com/repos/xyz/xyz-template/generate: 403 You'll need a different OAuth scope to create a private repository. Please see the documentation for full details. []
The template is an internal repo as well.
The PAT used to execute this has all access rights that are possible.
Actual Behavior
When creating an internal repo based on a template. No exception should come up.
Terraform Version
Terraform 1.10.3
Github provider: 6.5.0
Affected Resource(s)
github_repository
Terraform Configuration Files
Steps to Reproduce
(on a global level it's not allowed to create private repositories)
terraform apply
Debug Output
Panic Output
Code of Conduct
The text was updated successfully, but these errors were encountered: