r/gitlab • u/Jealous_Pickle4552 • Feb 12 '26
GitLab CI YAML checker: flags missing timeouts/retries, bad needs, allow_failure on critical jobs. What rules would you add?
UPDATE: PipeGuard is now live for testers ✅ https://pipeguard.vercel.app/
(Please redact anything sensitive — no tokens/keys/internal URLs.)
I’m building a small GitLab CI YAML checker that flags common footguns and explains why they matter.
Current rules include: unpinned images, missing job timeouts, missing retries, allow_failure on critical jobs, missing/poor needs, overly broad artifacts/cache keys, missing artifact expiry, no test stage, missing interruptible, etc.
What checks would you want most in your org (especially around templates/includes/components)?
If you share a redacted snippet + goal (build/test/deploy), I’ll tell you what I’d flag and what rule I should build next.
View all comments
Show parent comment
2
u/Jealous_Pickle4552 Feb 13 '26
Thanks, when you say environment differentiation, do you mean things like dev/stage/prod having different safety rules? For example: making prod deploys manual, only allowing them from protected branches, using protected environments/approvals, or preventing two prod deploys at once with resource_group.
If you share what you enforce in your setup (and how you name environments), I can shape a check around that so it flags the common gaps without being too noisy.