No description
Find a file
2026-11-05 15:57:54 +01:00
src github-guard: block non-release pushes to GitHub 2026-11-05 15:57:54 +01:00
.gitignore github-guard: block non-release pushes to GitHub 2026-11-05 15:57:54 +01:00
Cargo.lock github-guard: block non-release pushes to GitHub 2026-11-05 15:57:54 +01:00
Cargo.toml github-guard: block non-release pushes to GitHub 2026-11-05 15:57:54 +01:00
README.md github-guard: block non-release pushes to GitHub 2026-11-05 15:57:54 +01:00

github-guard

Hermes pre_tool_call-Hook: GitHub-Pushes nur für Releases (main/master, --tags, hotfix/*). Alles andere gehört auf Forgejo.

cargo build --release
install -m 755 target/release/github-guard ~/bin/github-guard

Exit 0 = erlaubt, Exit 2 + JSON = blockiert.