Skip to content

feat: allow admins team to force push protected branches - #22

Merged
xnoto merged 1 commit into
mainfrom
feat/force-push-bypassers
Aug 25, 2026
Merged

feat: allow admins team to force push protected branches#22
xnoto merged 1 commit into
mainfrom
feat/force-push-bypassers

Conversation

@xnoto

Copy link
Copy Markdown
Contributor

GitHub's allows_force_pushes = false blocks force pushes for everyone including org admins; only force_push_bypassers actors can override. Needed for the history root-squash.

The bypass entries converge because github_team_repository.admins already grants the team repo access (same eligibility rule as the other bypass actors). AGENTS.md updated.

@xnoto
xnoto requested a review from a team as a code ownerAugust 25, 2026 18:26
@github-actions

Copy link
Copy Markdown

OpenTofu Plan

OpenTofu will perform the following actions:
# github_branch_protection.protections[".github"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOPDNmL84EC8t_"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["cflan"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOOulWjM4EPi_e"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["images"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsexys4EPi_f"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["kustomize-cluster"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsxTyc4EPi_g"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["shared-workflows"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsfaHs4EPi_h"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["terraform-libvirt-domain"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsXn984EPi_i"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["tfroot-aws"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsXn6c4EPi_j"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["tfroot-cloudflare"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsXoEM4EPi_k"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["tfroot-github"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsXoMs4EPi_l"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["tfroot-libvirt"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOQsXoKM4EPi_n"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
# github_branch_protection.protections["www"] will be updated in-place
~ resource "github_branch_protection" "protections" {
~ force_push_bypassers = [
+ "makeitworkcloud/admins",
]
id = "BPR_kwDOOuKZAc4EPi_o"
# (9 unchanged attributes hidden)
# (3 unchanged blocks hidden)
}
Plan: 0 to add, 11 to change, 0 to destroy.

@xnoto
xnoto merged commit 241d26f into mainAug 25, 2026
4 checks passed
@xnoto
xnoto deleted the feat/force-push-bypassers branch August 25, 2026 18:27
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@xnoto