Skip to main content
RunBook Academy

← All checklists in Git, CI/CD & GitOps

Before deploymentgit-repository-readiness

Git Repository Production Readiness Checklist

17 items ·9 critical ·7 warn ·1 info

How to use this checklist

This is the gate before a repository is allowed to carry anything that runs in production — pipelines, plans, manifests, secrets references. It is deliberately blunt: a repo without protection, ownership, and a clean history is not a production repo, regardless of how clean its working tree looks at HEAD.

Work through it during the initial onboarding of a repository and again on a quarterly cadence afterwards, because every one of these items decays: people leave, bypass lists grow, dependencies rot. A repo that passed this list last quarter and has had no reviews since should be treated as failing it now.

Sign-off

Every critical item must pass. A failing critical item blocks the repository from being used by a production pipeline; it is not a note for later. Record the date, the reviewer, and the disposition of every item that did not pass.

Critical9 items

  1. git ls-files | grep -E "\.tfstate($|\.)|secrets\.yaml|id_rsa|\.pem$|\.key$" || echo "no plaintext secret-shaped files tracked"
  2. gitleaks detect --source . --no-banner --redact

Warning7 items

  1. git lfs ls-files | wc -l
  2. git rev-list --objects --all | git cat-file --batch-check="'%(objecttype) %(objectname) %(objectsize) %(rest)'" | awk '/^blob/ {print $3" "$4}' | sort -nr | head -20

Info1 item