Skip to content

Commit

Permalink
try length check instead
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesmmarshall committed Feb 16, 2023
1 parent e718cca commit df4424d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_repository.tf
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ resource "github_branch_protection_v3" "repository_main" {

required_status_checks {
strict = var.require_ci_pass
contexts = var.require_ci_pass == true ? var.status_checks : null
contexts = length(var.status_checks) > 0 ? var.status_checks : null
}

required_pull_request_reviews {
Expand Down

0 comments on commit df4424d

Please sign in to comment.