Skip to main content
PreparationZone Logo
PreparationZone
Back to DevOps

DevOps · Easy · Free

Client-side git hooks vs server-side checks — what must run in CI?

DevOpsGit & Version ControlFresherCI/CD
Model answer

Client-side git hooks vs server-side checks — what must run in CI?

  • Hooks are optional locally — attackers or rushed devs can skip them with --no-verify.
  • CI must enforce lint, tests, secret scan, and merge rules — hooks are convenience only.
  • Pre-commit for fast feedback; pipeline for authoritative gates.
Never trust the client — same rule as browser-side validation.