Skip to content

Commit 6dbdd81

Browse files
morisilclaude
andauthored
Fix private repo forking and remove deprecated has_downloads (#5)
- Add allow_forking that defaults to false for private repos to prevent "organization does not allow private repository forking" errors - Remove deprecated has_downloads attribute Co-authored-by: Claude Opus 4.5 <[email protected]>
1 parent c1a415e commit 6dbdd81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

repository/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ resource "github_repository" "this" {
2222
has_discussions = var.has_discussions
2323
has_projects = var.has_projects
2424
has_wiki = var.has_wiki
25-
has_downloads = false
2625
allow_merge_commit = false
2726
allow_squash_merge = true
2827
allow_rebase_merge = false
@@ -31,6 +30,7 @@ resource "github_repository" "this" {
3130
auto_init = true
3231
license_template = var.license_template
3332
allow_update_branch = true
33+
allow_forking = var.private ? false : true
3434
topics = var.topics
3535
dynamic "pages" {
3636
for_each = var.pages_url != null ? [1] : []

0 commit comments

Comments
 (0)