Skip to content

Bd 670 #1

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.tfdoc.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -1168,8 +1168,8 @@ section {
title = "Variables Configuration"

variable "variables" {
type = map(string)
default = {}
type = map(string)
default = {}
description = <<-END
Map of Github Action variables to create for this repository.

Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,10 @@ resource "github_branch_protection" "branch_protection" {
}
}

# BD-670 restrict_pushes runs zero times if no data exists
dynamic "restrict_pushes" {
for_each = try([var.branch_protections_v4[each.value].restrict_pushes], [])
for_each = try([coalesce(var.branch_protections_v4[each.value].restrict_pushes, null)], [])
iterator = this

content {
# TODO(v7): remove backwards compat attrs (push_restrictions, blocks_creations)
blocks_creations = try(this.value.blocks_creations, var.branch_protections_v4[each.value].blocks_creations, true)
Expand Down