Enforce bridge-owned GitHub pushes in dispatch turns

This commit is contained in:
Meta Vens 2026-06-17 06:51:08 +01:00
commit d93267eb47
7 changed files with 207 additions and 1 deletions

8
tools/git-hooks/pre-push Normal file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if [ "$BIFROST_ENFORCE_GITHUB_GATE" = "true" ] && [ "$BIFROST_GITHUB_PUSH_AUTHORIZED" != "true" ]; then
echo "Bifrost blocked git push in this dispatched turn. Use tools/bifrost-bridge.mjs so GitHub publication is gated and receipted." >&2
exit 1
fi
exit 0