Use when adding CI/CD, creating workflows, auditing GitHub Actions, or fixing action pinning. Creates and audits workflows for SHA pinning and permissions.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Github Actions?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tartinerlabs-github-actions)
---
name: github-actions
description: Use when adding CI/CD, creating workflows, auditing GitHub Actions, or fixing action pinning. Creates and audits workflows for SHA pinning and permissions.
license: MIT
allowed-tools: Read Glob Grep Edit Write Bash(gh api *) Bash(git status *)
model: sonnet
effort: high
context: fork
agent: general-purpose
background: false
argument-hint: "[scope] [audit|fix|create]"
compatibility: Targets GitHub Actions (GitHub-native); uses gh for SHA lookups; auto-detects project language (Node/JS-TS, Go, Python, Rust, Ruby)
metadata:
short-description: Create and audit CI workflows.
title: Audit CI workflows
goal: ship-code-safely
audience: developers, team-leads
---
## Mode Detection
Audit and report by default. Generate workflows only when asked to create, add, or set up CI — and **never merely because `.github/workflows/` is absent**; report that none were found instead. Apply fixes only when asked to fix or pin. When the ask is unclear, report first.
Arguments, if any: $ARGUMENTS — read the scope (workflow files) and the mode (`audit`, `fix`, or `create`) from them; with none, use the request as given and default to auditing every workflow. This may run without the conversation's history, so close an audit report by telling the caller how to apply it: invoke this skill again with the findings and `fix` as arguments.
## Create Mode
### 1. Detect the Language
Read the project's manifest and load **only** the matching template guide:
| Language | Detected by | Template |
|----------|-------------|----------|
| **JS/TS with pnpm** | pnpm detected per [rules/package-manager.md](rules/package-manager.md) | [references/pnpm.md](references/pnpm.md) |
| **JS/TS, other managers** | `package.json` | [references/js.md](references/js.md) |
| **Go** | `go.mod` | [references/go.md](references/go.md) |
| **Python** | `requirements.txt` / `pyproject.toml` / `setup.py` | [references/python.md](references/python.md) |
| **Rust** | `Cargo.toml` | [references/rust.md](references/rust.md) |
| **Ruby** | `Gemfile` | [references/ruby.md](references/ruby.md) |
### 2. Generate Workflow
Read each rule file in `rules/` and apply all of them when generating workflows — every template applies the same rules (action pinning, `permissions`, concurrency).
Pin every action per [rules/action-pinning.md](rules/action-pinning.md) before writing the workflow, including GitHub-owned `actions/*`. Resolve each to a full commit SHA and keep the release or source ref in a comment, as the rule describes.
When the project commits migrations from a migration tool, also add a separate `migration-drift` job per [rules/migration-drift.md](rules/migration-drift.md), and tell the user to make it a required status check.
## Audit Mode
### 1. Scan Workflows
Read all `.yml` and `.yaml` files in `.github/workflows/` and audit against every rule in the `rules/` directory.
### 2. Report Format
Report each finding as `path:line` — what is wrong → the fix, grouped by severity, and close with per-severity counts and the number of files scanned.
Report **all** rule violations found, not just pinning and permissions — migration drift, concurrency, node version, caching, triggers, matrix, and parallel steps too.
### 3. Auto-Fix
When fixing, look up commit SHAs for pinning as [rules/action-pinning.md](rules/action-pinning.md) describes.
## Rules
| Rule | Impact | File |
|------|--------|------|
| Action pinning | HIGH | [rules/action-pinning.md](rules/action-pinning.md) |
| Permissions | HIGH | [rules/permissions.md](rules/permissions.md) |
| Migration drift | HIGH | [rules/migration-drift.md](rules/migration-drift.md) |
| Package manager | HIGH | [rules/package-manager.md](rules/package-manager.md) |
| Concurrency | MEDIUM | [rules/concurrency.md](rules/concurrency.md) |
| Node version | MEDIUM | [rules/node-version.md](rules/node-version.md) |
| Caching | MEDIUM | [rules/caching.md](rules/caching.md) |
| Triggers | LOW | [rules/triggers.md](rules/triggers.md) |
| Matrix strategy | LOW | [rules/matrix.md](rules/matrix.md) |
| Parallel steps | LOW | [rules/parallel-steps.md](rules/parallel-steps.md) |