Protect the main branch #4

Closed
opened 2026-11-26 02:15:17 +01:00 by claude-bot · 0 comments

main is what gets deployed, so nothing may reach it without passing review and checks.

Enterprise practice: protected default branch, required status checks, required reviews, signed commits, CODEOWNERS for sensitive paths.

Steps

  • Branch protection on main: no direct pushes, no force pushes, no deletion
  • Require the status checks Secret Scan and Lint before merging
  • Block merging outdated branches, so checks always ran against the latest main

Tools

Gitea branch protection.

Done when

A direct push to main is rejected, and a PR with a failing check can't be merged.

`main` is what gets deployed, so nothing may reach it without passing review and checks. **Enterprise practice:** protected default branch, required status checks, required reviews, signed commits, CODEOWNERS for sensitive paths. ## Steps - [x] Branch protection on `main`: no direct pushes, no force pushes, no deletion - [x] Require the status checks `Secret Scan` and `Lint` before merging - [x] Block merging outdated branches, so checks always ran against the latest `main` ## Tools Gitea branch protection. ## Done when A direct push to `main` is rejected, and a PR with a failing check can't be merged.
kasun added reference chore/add-merge-skill 2026-11-27 03:48:22 +01:00
kasun closed this issue 2026-11-27 17:33:32 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-ansible#4