feat(git): refuse git push to main with a Claude Code hook #282

Merged
Defame1297 merged 4 commits from feat/178-refuse-push-to-main into main 2026-12-05 20:33:16 +00:00
Showing only changes of commit 038da3014e - Show all commits
@@ -127,6 +127,9 @@ passed. Failed tasks are shown in the PR comment for the approver to judge. Deci
cluster or state and print no secret: anything not on the list is denied, so an unlisted mutating cluster or state and print no secret: anything not on the list is denied, so an unlisted mutating
subcommand fails safe. Codex cannot ask, so odd jobs are subcommand fails safe. Codex cannot ask, so odd jobs are
denied there; an unrecognised runtime is treated the same way. denied there; an unrecognised runtime is treated the same way.
- *Amended 2026-12-04 ([git push-to-main hook](https://git.rkdr.net/Mortis/Holocron/issues/178)): `git`
ships its own guardrail hook beside `delivery`'s, refusing a `git push` to `main` on Claude Code
only. It fails open and has an opt-out; branch protection stays the real control.*
- *Amended 2026-11-25 ([Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200)): - *Amended 2026-11-25 ([Pre-merge Ansible dry run without exposing production credentials](https://git.rkdr.net/Mortis/Holocron/issues/200)):
the reopened Ansible `--check --diff` now runs in CI from the base branch's copy with production the reopened Ansible `--check --diff` now runs in CI from the base branch's copy with production
credentials — automatic on human-authored PRs, gated on bot PRs by an allowlisted human's credentials — automatic on human-authored PRs, gated on bot PRs by an allowlisted human's