Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

update-github-workflow-actions

БесплатноБез исполняемых скриптовНе проверен

Update the GitHub Actions that workflows use and keep the Torrust organization allowlist in sync. Use when bumping action versions or handling Dependabot…

torrustот torrust★ 539 звёзд на GitHub

Об этом скилле

Updating GitHub Workflow Actions

Use this skill to update uses: action references in .github/workflows/. For Cargo dependency updates, use .claude/skills/update-dependencies/SKILL.md instead.

Delivery Policy

  • Never push directly to develop or main.
  • Open a pull request to torrust/torrust-tracker:develop from a branch in the configured fork remote.
  • Keep actions on explicit versions. Do not replace an exact action version with a moving major tag solely to work around an allowlist failure.
  • Keep workflow actions updated to current safe versions to receive their security fixes.
  • When this work accompanies a Cargo dependency update, use its dedicated branch and update workflow actions only after the Cargo update has been validated.
  • When an organization allowed-actions policy update is required, capture the complete old and new allowlists in .tmp/. Include both lists verbatim in the signed commit body and pull-request description. State whether the change added, replaced, or retained patterns. Do not claim the policy was updated unless it has been confirmed.

Dependabot Notifications

Dependabot GitHub Actions pull requests are advisory notifications that an action may need an update. Use them as one discovery signal, but inventory the current workflow references and follow this skill's normal process to select, validate, commit, and open the update.

Do not copy a Dependabot commit or use Dependabot as the commit author. Do not close, merge, or otherwise manage the notification pull requests unless the user explicitly requests that work.

Quick Reference

# Use one nanosecond-resolution timestamp for this invocation's temporary evidence.
TIMESTAMP=$(date +%Y%m%d-%H%M%S-%N)
UPDATE_BRANCH="${TIMESTAMP}-update-github-workflow-actions"
ALLOWLIST_CURRENT=".tmp/${TIMESTAMP}-allowed-actions-current.txt"
ALLOWLIST_NEW=".tmp/${TIMESTAMP}-allowed-actions-new.txt"

git checkout develop && git pull --ff-only
git checkout -b "$UPDATE_BRANCH"
mkdir -p .tmp

# Save the complete current organization allowlist, then prepare the complete
# new list. The new list must retain every existing entry.
# Obtain administrator confirmation before claiming that the policy was updated.

linter yaml
git diff --check
TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh --format=json

# Include both complete captured lists in the signed commit body.
git commit -S -m "ci(workflows): update GitHub Actions" \
  -m "$(printf 'Allowed actions before update:\n%s\n\nAllowed actions after update:\n%s' "$(cat "$ALLOWLIST_CURRENT")" "$(cat "$ALLOWLIST_NEW")")"
git push {your-fork-remote} "$UPDATE_BRANCH"

# Open a PR using docs/templates/GITHUB-WORKFLOW-ACTIONS-UPDATE-PR.md.
# Replace both allowlist placeholders with the complete captured lists verbatim.

Update Workflow

  1. Generate one nanosecond-resolution timestamp and use it for the dedicated branch and .tmp/ evidence filenames shown in the quick reference. This prevents same-second collisions between independent invocations. Concurrent update workflows must not share a working tree because Git branches and the index are shared.
  2. Start from an up-to-date develop branch and create that dedicated branch.
  3. Inventory every current action reference, using Dependabot notifications as one possible signal, and review each intended action's release notes for compatibility or security implications. If no workflow reference needs an update, stop without committing.
  4. Update all intended .github/workflows/*.yaml references consistently. Dependabot is configured through .github/dependabot.yaml to report GitHub Actions updates; preserve the workflows' explicit version format.
  5. Before opening the pull request, obtain the complete current Torrust organization allowed-actions list and save it in "$ALLOWLIST_CURRENT". Prepare the complete revised list in "$ALLOWLIST_NEW", retaining every current entry. The allowlist is organization-wide: never replace it with an inventory from this repository alone. A missing entry from the configured list may be authorized by a broader organization policy, such as GitHub-owned or verified Marketplace actions; do not infer that it must be added from a repository scan. If a complete replacement list is requested, obtain an organization-wide inventory first; otherwise, provide only the required additions and replacements. If the required reference is not allowed and the agent cannot change the organization policy, tell the user that a GitHub organization administrator must update the allowed-actions list before the workflow can run. Add an allowlist pattern that permits the versioned reference, such as owner/action@v2.*, and prefer a scoped, stable pattern over a moving owner/action@v2 tag when Dependabot updates exact versions. Confirm that the configured pattern matches the full uses: reference. Compare the lists with a set-based comparison: for an additive change, `"$ALLOWLIST_CURRENT"
Полный SKILL.md на GitHub

Установить update-github-workflow-actions в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл update-github-workflow-actions?

Update the GitHub Actions that workflows use and keep the Torrust organization allowlist in sync. Use when bumping action versions or handling Dependabot GitHub Actions updates.

Как установить скилл update-github-workflow-actions?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл update-github-workflow-actions запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить update-github-workflow-actions с