cicd-security
БесплатноЗапускает вложенные скриптыНе проверенAudit CI/CD pipelines (GitHub Actions; GitLab CI and CircleCI briefly) for paths giving an outsider code execution, secrets or a write token…
от briiirussell★ 541 звезда на GitHubОб этом скилле
CI/CD Security — Workflows, Runners, Tokens and Agents in the Pipeline
Review a repository's CI configuration the way you'd review authorization code. A workflow file decides who can run what, with which token, which secrets and which cloud role. The question for every job is the same: can someone with less trust than the job (a fork PR author, any GitHub user who can comment, a third-party action maintainer) change what it runs or what it reads, and what does the job hold when they do? The same question applies when the actor already holds a valid write token: a stolen maintainer or bot credential, or a GitHub App token acting as that user. The workflow files are fine until that token edits them.
Cross-references: dependency-audit (packages, package lockfiles, build context and release-artifact identity; this skill owns
the workflow and runner side, including .github/workflows/actions.lock), secrets-audit (a secret that already reached a log, fork or artifact: rotation and
history), agent-supply-chain-audit (skills, hooks and MCP servers on developer machines; this skill covers agents
running inside CI), prompt-injection (LLM features in the user's own application), iam-audit (what the cloud role
behind an OIDC trust policy can do), cloud-audit (repo security defaults and branch protection as part of a platform
sweep), scanner-pipeline (running zizmor on every PR and on a schedule), finding-triage (disposition of a single
finding), incident-triage (a stolen write token that already pushed: contain, rotate, and the dated CI-token sweep).
When to use
- "Is this workflow safe?", a pasted
.github/workflows/*.yml, or a PR that adds or changes CI - A repo or org review of GitHub Actions: triggers, permissions, pins, runners, OIDC, caches, artifacts
- An AI agent action (claude-code-action, codex-action, run-gemini-cli, actions/ai-inference) wired to issues, PRs or comments
- GitLab CI (
.gitlab-ci.yml) or CircleCI (.circleci/config.yml): the same classes, see references/gitlab-circleci.md - zizmor or actionlint output that needs verdicts rather than a raw list
- A stolen maintainer or bot token: what one push can reach, and whether bots can bypass branch protection
Not for: vulnerable packages or a package lockfile diff → dependency-audit; a leaked key that needs rotating →
secrets-audit; a Claude skill or MCP server someone is about to install → agent-supply-chain-audit; prompt
injection in the product's chatbot → prompt-injection; designing least-privilege cloud roles → iam-audit; setting
up a weekly scanner workflow → scanner-pipeline; a confirmed CI-token compromise that needs containment, rotation,
and an IOC sweep → incident-triage (this skill rates what that token could reach).
Authorization
- Review only repositories, organizations and CI systems the user owns or is authorized to audit. If ownership is unclear, ask first.
- Pre-approved because they only read: reading files, the
zizmor --offlineandactionlintforms, andgh workflow list/viewandgh run list. None of them edits a workflow. - Always prompts:
zizmorin online mode (it sends a GitHub token to the API), anygh apicall (the same command takes-X/-fand becomes a write),zizmor --fix(rewrites workflow files),gh run download, re-running or dispatching a workflow, and changing any repository or org setting. Recommend those; let the owner run them. - Never prove a finding by opening a PR, issue or comment on a repository to trigger a workflow, and never run a
workflow with a crafted payload. Write the exploit path as a trace and, where a live check is needed, a
validation_planthe owner runs on a private fork or test repo. - Never print secret values from workflow logs, environments or artifacts. Names only.
Step 1 — Inventory
Read every file that defines or feeds a pipeline, not just .github/workflows/:
| What | Where |
|---|---|
| Workflows | .github/workflows/*.yml, *.yaml |
| Local actions and reusable workflows | .github/actions/**/action.y*ml, action.y*ml at the root, any uses: ./… path |
| Remote reusable workflows | job-level uses: org/repo/.github/workflows/x.yml@ref: read them too, one level deep |
| Config the jobs execute or the agent loads | Makefile, package.json scripts, scripts under .github/, CLAUDE.md, AGENTS.md, .claude/, .mcp.json. Who may change them: agent-supply-chain-audit CC1–CC3 |
| Other CI | .gitlab-ci.yml and its include: files, .circleci/config.yml, dependabot.yml |
| Workflow lockfile | .github/workflows/actions.lock only. A different name, a copy, or a symlink is not coverage |
For each workflow, record: triggers (on:), top-level and job-level permissions:, each job's runs-on,
environment:, if: gates, every uses: with its ref, the secrets and id-token it uses, and any AI agent step.
That table is the coverage record for the
Установить cicd-security в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobWebSearchBash(zizmor --offline .)Bash(zizmor --offline --format=json .)Bash(zizmor --offline --format=sarif .)Bash(actionlint)Bash(actionlint -oneline)Bash(actionlint -format '{{json .}}')Bash(gh workflow list:*)Bash(gh workflow view:*)Bash(gh run list:*)Вложенные файлы
FAQ
Что делает скилл cicd-security?
Audit CI/CD pipelines (GitHub Actions; GitLab CI and CircleCI briefly) for paths giving an outsider code execution, secrets or a write token: pull_request_target and workflow_run running untrusted code, expression injection, missing or broad permissions, third-party actions not pinned to a SHA or lockfile, OIDC trust with wildcard subjects, self-hosted runners on public repos, secrets reaching forks, cache and artifact trust, and AI agents in CI reading issue or PR text with a write token, sandbox or not. Runs zizmor and actionlint read-only, writes findings.json. Use when the user mentions 'pull_request_target,' 'pwn request,' 'workflow injection,' 'zizmor,' 'actionlint,' 'pin actions to SHA,' 'actions.lock,' 'workflow lockfile,' 'GITHUB_TOKEN permissions,' 'self-hosted runner,' 'ACTIONS_RUNTIME_TOKEN,' 'stolen write token,' 'bot bypasses branch protection,' 'claude-code-action,' 'AI agent in CI,' 'GitLab CI security,' 'CircleCI security,' 'is this workflow safe,' or needs to secure a build pipeline.
Как установить скилл cicd-security?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cicd-security запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic