ワンクリックで
github-actions-version-fix
Fix GitHub Actions "Unable to resolve action" errors using gh CLI to find correct version tags or commit SHAs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fix GitHub Actions "Unable to resolve action" errors using gh CLI to find correct version tags or commit SHAs.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| version | 1.0.0 |
| name | github-actions-version-fix |
| description | Fix GitHub Actions "Unable to resolve action" errors using gh CLI to find correct version tags or commit SHAs. |
| category | workflow |
| allowed-tools | Read Write Edit Glob Grep Bash |
| license | MIT |
Fix CI pipeline failures caused by incorrect action version tags or commit SHAs in GitHub workflow files.
gh) installed and authenticatedError message shows: Unable to resolve action {owner}/{repo}, version {version} not found
Extract the action and version, e.g., actions/upload-artifact@v4.6.1
# List all tags for an action
gh api repos/{owner}/{repo}/tags --jq '.[].name' | head -20
# List releases (more stable than tags)
gh api repos/{owner}/{repo}/releases --jq '.[].tag_name' | head -20
# Get latest release
gh api repos/{owner}/{repo}/releases/latest --jq '.tag_name'
# Get commit SHA for a specific tag
gh api repos/{owner}/{repo}/git/ref/tags/v4 --jq '.object.sha'
# Check if commit SHA is valid
gh api repos/{owner}/{repo}/commits/{sha}
# Before (fails)
- uses: actions/upload-artifact@v4.6.1
# After (using version tag)
- uses: actions/upload-artifact@v4
# After (using full commit SHA - most stable)
- uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1
| Error | Solution |
|---|---|
Unable to resolve action | Find correct tag via gh api |
404 Not Found | Check owner/repo name |
Reference does not exist | Verify SHA exists |
Tag not found | Use different tag or SHA |
#!/bin/bash
# check-workflow-actions.sh <workflow-file>
WORKFLOW_FILE="$1"
ACTIONS=$(grep -E "^\s+- uses:" "$WORKFLOW_FILE" | sed 's/.*uses: //' | sort -u)
for ACTION in $ACTIONS; do
REPO=$(echo $ACTION | cut -d'@' -f1)
VERSION=$(echo $ACTION | cut -d'@' -f2)
OWNER=$(echo $REPO | cut -d'/' -f1)
NAME=$(echo $REPO | cut -d'/' -f2)
if [[ $VERSION == v* ]]; then
SHA=$(gh api repos/$OWNER/$NAME/git/ref/tags/$VERSION --jq '.object.sha' 2>/dev/null)
[ -n "$SHA" ] && echo "OK: $REPO@$VERSION" || echo "FAIL: $REPO@$VERSION"
fi
done
# Validate syntax
python -c "import yaml; yaml.safe_load(open('.github/workflows/ci.yml'))"
# Or use yamllint
yamllint .github/workflows/
gh api to find correct version/SHAUse gh api to find correct version tags or commit SHAs when actions fail to resolve. Prefer full SHAs for security-critical actions and validate YAML before committing.
Orchestrate static analysis using Codacy. Required PR check on this repo. Use for querying PR analysis, triaging issues, fixing (not suppressing) findings, and local analysis. See SKILL.md for fix patterns and the required-check policy.
Build localized, accessible, premium reader/admin UI with 2026 design standards. Features OKLCH colors, View Transitions, scroll-aware components, and mutual exclusivity panels.
Create AGENTS.md files with production-ready best practices. Activate when creating new AGENTS.md or implementing quality gates.
Comprehensive GitHub PR review and automated fix pipeline. Takes a PR number or auto-detects from current branch, runs code review, static analysis, security audit, and quality checks, then produces a structured report and auto-fixes must-fix issues. Activate for "review PR", "fix PR issues", "PR quality check", "review and fix PR #123".
Invoke for complex multi-step tasks requiring intelligent planning and multi-agent coordination. Use when tasks need decomposition, dependency mapping, parallel/sequential/swarm execution strategies, or coordination of multiple specialized agents with quality gates.
Break down complex tasks into atomic, executable goals. Activate for multi-step feature planning, agent coordination, or request decomposition.