[错误] 只读权限模式允许 git 通过 (\git tag v1\, \git branch topic\, \git remote add\, \git symbolic-ref\) 进行写入
作者: aniruddhaadak80创建于 2026年9月29日更新于 2026年9月29日
`read-only` 模式允许多个 **git 写** 通过。允许列表中包含的子命令仅在其列表形式中读取,而监护程序只检查 **标志** - 但创建引用是使用裸操作符进行的,因此对其是不可见的。`allowlist` 已经通过 `_GIT_LIST_ONLY` 处理了 `stash` / `worktree` / `notes` 的这种形状,但遗漏了四个成员:
内容来源: zhayujie/CowAgent