⌨️allowManagedHooksOnly
Also known as allowManagedHooksOnly setting
The key that lets only the company's hooks run.
Think of it like
It is like a school where only the teacher's alarms may ring. Alarms kids bring stay quiet.
Example
Emma's company found a hook in a repo that sent code to an outside server. IT turns this key on, and only its own hooks run.
Why it matters
A hook runs a command on your machine, so a hook from a cloned repo is a real risk.
Definition
Example code
json
{
"allowManagedHooksOnly": true
}Common mistake
Key takeaways
- 1Company hooks only. Others skipped.
- 2SDK hooks still run. And forced plugins.
- 3Managed only. Nowhere else.