Skip to content

Commit

Permalink
Update github_branch.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold authored and GitHub committed Dec 4, 2024
1 parent 7919fbc commit 0c4725b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_branch.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ locals {

# https://registry.terraform.io/providers/integrations/github/latest/docs/resources/branch_protection
resource "github_branch_protection" "main" {
count = var.enforce_prs ? 1 : 0
count = var.enforce_prs && !var.github_is_private ? 1 : 0
enforce_admins = var.github_enforce_admins_branch_protection
pattern = var.github_default_branch
# push_restrictions = var.github_push_restrictions
Expand Down

0 comments on commit 0c4725b

Please sign in to comment.