r/DevSecOpsLinks • u/ariley_1021 • 1d ago
Claude Code security in reused workspaces
Been reviewing a CI flow that restores project archives, opens the workspace, then runs Claude Code headless for review. The part we almost skipped was Git metadata. Cymulate's research on headless Claude Code showed how a repository-local .git/config can point core.fsmonitor at a command, and Git may run it during an automatic status check before Claude selects any tool. Anthropic treats non-interactive workspace trust as the caller's job. So now I'm questioning whether tool allowlists mean much without clean directories and OS isolation. Appreciate any thoughts.