Enforce bridge-owned GitHub pushes in dispatch turns
This commit is contained in:
parent
70f323c7db
commit
d93267eb47
7 changed files with 207 additions and 1 deletions
8
tools/git-hooks/pre-push
Normal file
8
tools/git-hooks/pre-push
Normal 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
|
||||
Loading…
Reference in a new issue