Skip to content

Commit

Permalink
fix: Specify blocks_creations in branch protection
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Feb 23, 2024
1 parent b248153 commit a463fcd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ resource "github_branch_protection" "main" {
}

restrict_pushes {
blocks_creations = true
push_allowances = [
local.github_actions_app_node_id, # Allow @semantic-release/github to create GH releases
local.kodiakhq_app_node_id, # Allow Kodiak to merge PRs
Expand All @@ -75,6 +76,7 @@ resource "github_branch_protection" "gh_pages" {
enforce_admins = true

restrict_pushes {
blocks_creations = false
push_allowances = [
local.github_actions_app_node_id, # Allow @github-actions to push commits
]
Expand Down

0 comments on commit a463fcd

Please sign in to comment.