agentleFS
ByronScottJonesByronScottJones/Agents/skills/validate-github-actions/SKILL.md

validate-github-actions

Skill7 starsChanged 2 months agoMITView on GitHub

Use when auditing or validating GitHub Actions workflows for syntax, action pinning, least-privilege permissions, fork safety, caching, artifacts, matrices, and CI security. Defaults to read-only analysis; mutations require explicit confirmation.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Check action references for immutable SHAs and readable version comments.

    line 26
  2. Very specific:

    When fixUnpinned is true, propose pinning changes.

    line 29
  3. Distinctive:

    Never execute a workflow as part of static validation.

    line 35
  4. Distinctive:

    Do not expose secrets from workflow files or logs.

    line 36
  5. Distinctive:

    Treat fork workflows as untrusted.

    line 37
  6. Distinctive:

    Do not rewrite action references without recording the resolved version.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Validate GitHub Actions

Audit workflow files against githubactions.md, security.md, and repository conventions.

Parameters

  • workflowPath: workflow directory or file; default .github/workflows.
  • mode: syntax, security, best-practices, or full; default full.
  • requireSHA: default true.
  • auditPermissions: default true.
  • checkForks, checkMatrices, checkCaching, checkArtifacts: default true.
  • fixUnpinned: default false.
  • format: summary, json, or sarif; default summary.

Workflow

  1. Discover YAML workflow files and parse them without executing workflows.
  2. Validate triggers, jobs, matrices, expressions, permissions, and dependencies.
  3. Check action references for immutable SHAs and readable version comments.
  4. Audit token permissions, fork behavior, secret exposure, concurrency, timeouts, caching, artifacts, environments, and deployment gates.
  5. When fixUnpinned is true, propose pinning changes. Apply them only after explicit confirmation and record each resolved action SHA.
  6. Re-run validation and return findings by severity.

Safety

  • Never execute a workflow as part of static validation.
  • Do not expose secrets from workflow files or logs.
  • Treat fork workflows as untrusted.
  • Do not rewrite action references without recording the resolved version.

Output

Return files checked, syntax status, security findings, best-practice findings, changes applied, unresolved risks, and CI recommendations.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.