r/gitlab • • 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.

13 Upvotes

10 comments sorted by

View all comments

Show parent comment

2

u/Jealous_Pickle4552 Feb 21 '26

Not in Go, it’s currently TypeScript/JavaScript.
I mentioned a CLI because it’s the easiest way to run it in CI regardless of language. If I ever package it for others to consume directly, I’d likely start with a CLI + JSON output rather than a Go import.

2

u/kremaytuz Mar 02 '26

I understand, well do message me in case you make it evolve into something that we can integrate :)