Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea committed Feb 23, 2024
1 parent 0b2a928 commit 26537ff
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ resource "github_branch_protection" "main" {
required_approving_review_count = 1
}

push_restrictions = [
local.github_actions_app_node_id, # Allow @semantic-release/github to create GH releases
local.kodiakhq_app_node_id, # Allow Kodiak to merge PRs
]
restrict_pushes {
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
]
}
}

resource "github_branch_protection" "gh_pages" {
Expand All @@ -72,9 +74,11 @@ resource "github_branch_protection" "gh_pages" {

enforce_admins = true

push_restrictions = [
local.github_actions_app_node_id, # Allow @github-actions to push commits
]
restrict_pushes {
push_allowances = [
local.github_actions_app_node_id, # Allow @github-actions to push commits
]
}
}

resource "github_issue_label" "kodiak_automerge" {
Expand Down

0 comments on commit 26537ff

Please sign in to comment.