Skip to content
Back to skills

Audit Ci

ASecurity

Hardening review of CI workflow files

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 17, 2026
ai-agentsrustbashgit

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill audit-ci --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Audit Ci?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Audit Ci
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ku5ic-audit-ci/badge)](https://www.skillsdirectory.com/skills/ku5ic-audit-ci)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: audit-ci
description: Hardening review of CI workflow files
argument-hint: "<workflow file, or none for every file in .github/workflows>"
allowed-tools:
  - Bash(git log *)
---

# /audit-ci

Hardening review of CI workflows.

Loading this skill isn't enough. Before the step a row names, read its file.

| Before                                                                    | Read                                                               |
| ------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| Checking permissions, triggers, `run:` steps, secrets, or runners, step 2 | [reference/workflow-hardening.md](reference/workflow-hardening.md) |

## Run

Resolve a linked ticket or doc as `skills/investigate` step 0 describes, then work this file's procedure on the resolved arguments per `skills/kit-rules/reference/subagents.md` section 4, and write the report yourself. Then run the report-format skill's Runtime checks yourself, and reply per `skills/kit-rules/reference/output.md` section 3.

## Prerequisites

- No `.github/workflows` directory: stop and say so.

## Procedure

1. Run `actionlint` on the target workflows. Each error is a finding. With no `actionlint`, skip this step and say so under "Needs a runtime check".
2. Read each workflow and check:
   - **Pinning**: a `uses:` of an action outside the repo pinned to a branch (`@main`) is a `warning`.
   - **Permissions**: a top-level or per-job `permissions:` block granting only what the jobs use. None at all means the token's default scope, a `warning`.
   - **Untrusted triggers**: `pull_request_target` or `workflow_run` that checks out or runs the PR's code is a `failure`.
   - **Injection**: `${{ github.event.* }}`, `${{ github.head_ref }}`, or another attacker-set value interpolated into `run:` is a `failure`. The fix passes it through `env:`.
   - **Secrets**: a secret echoed, written to a file or artifact, or passed to a step that runs PR code.
   - **Self-hosted runners** on a workflow that public PRs can trigger.
3. Infra files the jobs deploy are `/audit-infra`'s job.

## Not a finding

- An event value interpolated into `run:` that an attacker can't shape: a SHA, a number, or a boolean, such as `github.event.pull_request.base.sha`. Passing it through `env:` is still cleaner, as `info`.
- A local action (`uses: ./...`), which the repo itself pins.
- An action pinned to a version tag (`@v4`).

## Output per finding

- The workflow and job, with `file:line`
- Evidence: the actionlint line, or the quoted YAML
- Severity: per the report-format skill's rubric, or as step 2 sets it
- Fix: the replacement YAML

## Output file

Load the report-format skill and use its format. Write to the path `kit scratch-dir ci <target-slug>` prints.

Arguments: `$ARGUMENTS`

Files in this skill

  • SKILL.md2.8 KB
  • reference/workflow-hardening.md1.2 KB
  • sources.md712 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.