Back to feed
Dev.to
Dev.to
6/26/2026
I built a GitHub Action that fails CI when your meta tags are broken

I built a GitHub Action that fails CI when your meta tags are broken

Short summary

Google and social platforms retired their meta tag validators. This MIT-licensed GitHub Action validates SEO and social-share tags in CI, checking titles (30-60 chars), descriptions (120-160 chars), Open Graph tags, canonical links, and robots directives. It fails the build if tags are missing or outside recommended ranges, with a local Python CLI for pre-commit validation.

  • Open-source GitHub Action automates SEO and social meta tag validation in CI pipelines
  • Checks title length, meta description, OG tags, canonical links, robots directives with opinionated but correct defaults
  • Zero dependencies, single Python file, runs locally or in GitHub Actions—catches 4+ common issues before production ship

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more