Skip to content

Commit

Permalink
feat: Add branch protection for gh-pages (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarea authored Dec 22, 2021
1 parent 130c5b0 commit 1aacb42
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,17 @@ resource "github_branch_protection" "main" {
]
}

resource "github_branch_protection" "gh_pages" {
repository_id = github_repository.main.node_id
pattern = "gh-pages"

enforce_admins = true

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

resource "github_issue_label" "kodiak_automerge" {
// https://kodiakhq.com/
repository = github_repository.main.name
Expand Down

0 comments on commit 1aacb42

Please sign in to comment.