github-actions-version-pinning
БесплатноБез исполняемых скриптовНе проверенVerify and pin GitHub Actions versions in workflow files. Use when creating, editing, or reviewing `.github/workflows/*` files, changing `uses:` references…
от dkarter★ 130 звёзд на GitHubОб этом скилле
GitHub Actions Version Pinning
Overview
Ensure workflow actions use current, intentional pins. Prefer exact patch tags or immutable SHAs for third-party actions when practical; use latest major tags only when the repository convention or user explicitly asks for major-version pins. Treat non-GitHub actions as supply-chain risk unless the user or repository policy has already approved them.
Workflow
- Identify every
uses:reference in changed workflow files. - Classify each reference:
- Official GitHub action:
actions/*,github/*. - Third-party action: everything else.
- Local action:
./...; do not version-pin local actions. - Existing SHA pin: preserve it unless the user explicitly asks to update or replace it.
- Official GitHub action:
- Check the official upstream source for the latest release before changing versions.
- Prefer
gh release view --repo OWNER/REPO --json tagName,isLatestwhen authenticated and available. - Otherwise fetch
https://github.com/OWNER/REPO/releases/latestor inspect upstream tags.
- Prefer
- Apply pinning policy:
- Respect repository policy first. Some repositories consider official GitHub actions safe with tag pins; others require SHA pins for every external action.
- Default security preference: pin external actions to the latest exact patch tag, for example
actions/[email protected]orjdx/[email protected]. - If the user or repo policy asks for major-version pins, pin to the latest major tag, for example
actions/checkout@v6. - If GitHub's API shows a tag version is immutable, treat that tag as equivalent to a SHA. Prefer immutable tag pins over raw SHAs because they stay readable, but add a workflow comment noting that the tag was verified immutable.
- For high-risk or untrusted third-party actions without immutable tags, prefer a full commit SHA and include a comment or documentation of the corresponding release tag when useful.
- Avoid adding new third-party actions without explicit user consent. If an external action would be convenient, ask first and explain the supply-chain risk.
- Validate workflow schemas after edits if a local task exists, for example
task validate:file -- .github/workflows/ci.yml.
Rules
- Do not assume
@vNis latest. Verify upstream first. - Do not use floating branch refs like
@mainor@masterfor external actions unless explicitly requested. - Do not downgrade from an exact patch/SHA pin to a major tag unless explicitly requested.
- Do not replace an existing SHA pin with a tag unless GitHub's API verifies the tag is immutable or the user explicitly requests it. If using an immutable tag, add a comment documenting that verification.
- Do not introduce a new third-party action silently. Prefer built-in shell commands or official GitHub actions when possible, and ask before adding third-party actions.
- Mention verified upstream latest versions in the final response when version changes were made.
- If an action has no releases, use a specific tag if available; otherwise consider a commit SHA.
Examples
uses: actions/checkout@v5with latest releasev6.0.2: preferactions/[email protected]; use@v6only when latest-major pinning is requested.uses: jdx/mise-action@v3with latest releasev4.0.1: preferjdx/[email protected]; use@v4only when latest-major pinning is requested.uses: docker/login-action@v3: check latestdocker/login-actionrelease; if already on latest exact patch or accepted major pin, leave unchanged.
Установить github-actions-version-pinning в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл github-actions-version-pinning?
Verify and pin GitHub Actions versions in workflow files. Use when creating, editing, or reviewing `.github/workflows/*` files, changing `uses:` references, adding external actions, responding to CI/security review feedback about action versions, or checking whether actions are pinned to the latest appropriate version.
Как установить скилл github-actions-version-pinning?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл github-actions-version-pinning запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub