Github actions validation

From y-miyazaki/terraform-aws-base · View interactive version

Github actions validation is an AI agent skill from the GitHub repository y-miyazaki/terraform-aws-base. Validate GitHub Actions workflows for syntax and security with ORD-01 map key order checks, actionlint, ghalint, and zizmor. Use when committing workflow changes, running CI validation, or checking workflow security issues.

How to use this skill

Skill file

Input

Output Specification

Return structured Markdown in accordance with references/common-output-format.md. That file is the source of truth for the output contract.

Structured validation results from four tools: ORD-01 map order → actionlint → ghalint → zizmor. Attribute evidence to the producing tool.

Execution Scope

USE FOR:

DO NOT USE FOR:

Reference Files Guide

Workflow

  1. Run bash scripts/validate.sh (or bash scripts/validate.sh <workflows-dir> to scope the ORD-01 check and ghalint).
  2. Parse script output and map results to checklist ItemIDs.
  3. Report per-tool results (pass, fail, skipped) per references/common-output-format.md.
  4. If checks fail and the user asked for fixes, fix reported issues and rerun the same command; otherwise report the failures.
  5. Retry at most 2 times after fixes; if checks still fail, return blocking findings and stop.

Error Handling

| Condition | Severity | Action |

| ----------------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------- |

| scripts/validate.sh missing | Fatal | Stop; report missing script |

| No workflow YAML under target path | Info | Report no reviewable workflows; stop |

| python3 / actionlint / ghalint / zizmor missing | Fatal | Stop; report the missing binary; set Status: ❌ FAIL |

| A tool fails | Recoverable | Report earlier tools as passed, the failed tool ❌ Fail with exit status, later tools ⊘ Skipped |

| common-checklist.md unavailable | Fatal | Stop; report missing dependency |

| common-output-format.md unavailable | Recoverable | Note missing file; emit ## Summary, ## Tool Results, and ## Error Details only |

Examples

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.