From 5c2d2f62ee907831843a249c3231d9495d288136 Mon Sep 17 00:00:00 2001 From: Gus Narea Date: Fri, 19 Apr 2024 11:38:40 +0100 Subject: [PATCH] fix: Allow Kodiak to push to `gh-pages` --- main.tf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 8e3b0dd..425de20 100644 --- a/main.tf +++ b/main.tf @@ -73,12 +73,11 @@ resource "github_branch_protection" "gh_pages" { repository_id = github_repository.main.node_id pattern = var.pages_source_branch - enforce_admins = true - restrict_pushes { blocks_creations = false push_allowances = [ local.github_actions_app_node_id, # Allow @github-actions to push commits + local.kodiakhq_app_node_id, # Allow Kodiak to merge PRs ] } }