feat(git): refuse git push to main with a PreToolUse hook
An agent on main can push straight to it when the server does not protect the branch. The git plugin now ships a Claude Code hook that refuses such a push before it runs. It fails open, does nothing on other runtimes, and has an opt-out read only from the hook's own environment. Closes: #178 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNugst7K9Bd2FTR4Mi
This commit is contained in:
1 parent
55da336298
commit
77642183c2
8 files changed
+451
-6
No files matched your search
+1
-1
@@ -1,5 +1,5 @@
|
||||
name: git
|
||||
version: 1.3.9
|
||||
version: 1.4.0
|
||||
description: Skills and agents for working with a local Git clone over the git wire protocol, and for authoring and running the pre-commit hooks that guard it.
|
||||
author:
|
||||
name: Mortis
|
||||
|
||||
Reference in new issue
Block a user