(hooks: HooksConfig)
| 110 | } |
| 111 | |
| 112 | function hashHooks(hooks: HooksConfig): string { |
| 113 | return crypto.createHash("sha256").update(JSON.stringify(hooks)).digest("hex").slice(0, 16) |
| 114 | } |
| 115 | |
| 116 | function isProjectHooksTrusted(cwd: string, hash: string): boolean { |
| 117 | // Escape hatch for CI / non-interactive automation. Only honored when |
no outgoing calls
no test coverage detected