github-actions
БесплатноЗапускает вложенные скриптыНе проверенWrites, reviews and hardens GitHub Actions workflows and composite actions, and bundles scripts that check permissions, pinned actions, pull_request_target…
от crewrig★ 24 звезды на GitHubОб этом скилле
GitHub Actions
Practitioner rules for the workflows under .github/workflows/ and for composite
actions. The model already knows the syntax; this skill holds what it gets wrong,
the checks that settle the fixed questions, and the judgements a script cannot make.
Hand a change to the security skill when it adds a secret, widens GITHUB_TOKEN
permissions, adds a cloud trust relationship or runs untrusted input in a shell, and
to the architect skill when it restructures workflows across repositories.
Scripts
Run them from this skill's directory with node scripts/<name>.ts <path>, where
<path> is a workflow file or a directory. They need only Node.js and write nothing.
Run validate-pipeline.ts on every workflow you write or change: it runs the other
checks and states which ones ran.
| Script | When | Exit codes |
|---|---|---|
node scripts/validate-pipeline.ts <file-or-dir> |
After writing or changing a workflow, before presenting it. One input only. | 0 every check ran clean or was skipped, 1 a check that ran found a problem, 2 usage error or no workflow file, 3 unreadable input or a check that could not run. |
node scripts/check-permissions.ts <path> |
A workflow without permissions:, or with write-all. |
0 clean, 1 a finding, 2 usage error or empty directory, 3 unreadable path. |
node scripts/check-pull-request-target.ts <path> |
A workflow triggered by pull_request_target. |
Same as above. |
node scripts/check-expression-injection.ts <path> |
A ${{ }} expression inside run: or an actions/github-script script. |
Same as above. |
node scripts/check-pinned-actions.ts <path> |
Any uses: that is not a 40-character SHA. |
0 all pinned, 1 unpinned reference or unreadable path, 2 usage error. |
node scripts/lint-workflow.ts <path> |
Syntax, contexts and shell errors; needs actionlint. |
0 clean or skipped, 1 errors or unreadable path, 2 usage error. |
node scripts/check-secrets-exposure.ts <path> |
A secret that may reach a log or an over-wide scope. | 0 nothing found, 1 a finding, 2 usage error. |
node scripts/simulate-job.ts <file> <job> [event] and node scripts/simulate-workflow.ts <file> [event] |
A local dry run with act while iterating on run: logic. |
0 ok or skipped, otherwise the status of act, 2 usage error. |
Without actionlint, lint-workflow.ts exits 0 before it looks at the path, so a
missing file also passes on such a machine.
Add --json to get one {ok, data, findings} object on standard output (every script
except check-secrets-exposure.ts, which rejects it). A warning
never changes an exit code. A check that exits 0 with a [SKIP] line did not look
at your file: report it as skipped, never as passed. Exit 2 or 3 means the call
or the environment is wrong, not the workflow. A green act run is necessary, not
sufficient: it does not reproduce the hosted runner image.
The three checks check-permissions.ts, check-pull-request-target.ts
and check-expression-injection.ts do not read composite actions: a file with no jobs: key passes
with no finding and the summary says it was not checked, so review the run: steps of
an action.yml by hand, above all any ${{ inputs.* }} in them. They also read a small
subset of YAML. A construct they cannot read
(anchor, alias, merge key, multi-line flow mapping) is reported as an unparsed
warning: review that line by hand, because the file was not verified there.
Pitfalls
A script catches the first four; the rest need your judgement.
- Unpinned third-party actions: pin by commit SHA (
check-pinned-actions.ts). - A
GITHUB_TOKENwith inherited write access: set a top-levelpermissions:block withcontents: read(not{}, which also blocks checkout of a private repository) and raise it per job (check-permissions.ts). - Event data pasted into a shell step: bind it under
env:(check-expression-injection.ts). - A
pull_request_targetworkflow that checks out the pull request head: a label or an environment gate does not make the head's code trusted (check-pull-request-target.ts). - Cache poisoning through a privileged event: a job triggered by
pull_request_target,workflow_runorissue_commentsaves into the default branch's cache scope, so untrusted code it runs can plant an entry that the main branch restores. A plain pull request cannot: restore never reads a child or sibling ref. Do not run pull request code in those events, and do not save a cache from them. hashFiles()over a glob that also matches vendored copies yields a key that changes whenever any of those files does, often after an install. Name the real lockfile path.continue-on-error: trueon a flaky step ends up hiding a real regression. Retry explicitly and handle the failure instead.if: always()on a cleanup or upload step:always()also runs after a cancellation, so a st
Установить github-actions в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл github-actions?
Writes, reviews and hardens GitHub Actions workflows and composite actions, and bundles scripts that check permissions, pinned actions, pull_request_target checkouts and expression injection. Use when working on a file under .github/workflows or an action.yml, when a workflow needs a GITHUB_TOKEN permissions block, OIDC instead of long-lived cloud keys, pinned actions, caching, a reusable workflow or a composite action, when a pull request changes CI, or when a failing pipeline may be caused by the workflow definition. Trigger terms: workflow, GitHub Actions, CI pipeline, permissions, pull_request_target, OIDC, pinned actions, reusable workflow, composite action, failing pipeline. Not for GitLab CI pipelines (gitlab-ci), security review of application code (security) or pull request descriptions (pr-logbook).
Как установить скилл github-actions?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл github-actions запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic