Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 12, 2026·2 min de lecture

actionlint — Lint GitHub Actions Locally

actionlint catches syntax mistakes and expression/type errors in GitHub Actions workflows before CI runs, so broken YAML never blocks your team.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install 2a65110c-eb7a-4e41-ac09-2f700b5043a1 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

actionlint catches syntax mistakes and expression/type errors in GitHub Actions workflows before CI runs, so broken YAML never blocks your team.

  • Best for: teams that rely on GitHub Actions heavily and want fast feedback before pushing
  • Works with: GitHub Actions YAML, ${{ }} expressions, optional shellcheck/pyflakes integrations
  • Setup time: 5–10 minutes

Practical Notes

  • Add it as a pre-push hook to prevent broken workflows from reaching CI.
  • Run time is usually seconds for typical repos (no CI spin-up).

What to validate first

  1. YAML correctness (missing keys, wrong nesting)
  2. Expression issues in ${{ }} (type mismatch, missing fields)
  3. Runner labels and reusable workflow inputs

Suggested workflow

Step 1: run locally before you push

actionlint

Step 2: make it part of your repo hygiene

If you have many workflows, run actionlint as part of your standard checks (for example, the same command your devcontainer or agent runs before opening a PR).

Step 3: keep false positives low

When you hit a noisy edge case:

  • isolate the workflow file and reproduce with actionlint path/to.yml,
  • then adjust configuration/ignores only for that path.

Why this matters for AI coding agents

Agents generate YAML quickly, but YAML failures are expensive: you only notice after a CI round-trip. actionlint gives you a cheap “compiler” step for workflows.

FAQ

Q: Is actionlint only for Actions YAML? A: Yes—it's specialized for GitHub Actions workflows and their expression system.

Q: Do I need CI to use it? A: No. Run it locally in seconds; CI integration is optional.

Q: What’s the biggest win? A: Catching expression mistakes early—those are common and painful to debug via CI logs.

🙏

Source et remerciements

Source: https://github.com/rhysd/actionlint > License: MIT > GitHub stars: 3,860 · forks: 217

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires