/git-and-pr:pin-actionsfrom git-and-pr
Pin GitHub Actions from mutable tags (e.g., @v4) to immutable commit SHAs to prevent supply chain attacks. Use when editing .github/workflows files, hardening CI security, looking up action SHAs, pinning actions to specific commits, or replacing "uses: owner/repo@tag" references with SHA-pinned equivalents.
Ships in git-and-pr. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
GitHub Actions referenced by mutable tags (@v4) are vulnerable to supply chain attacks —
a compromised maintainer can silently move the tag to malicious code. Pinning to a commit
SHA makes the reference immutable and tamper-evident.
~/.claude/skills/pin-actions/scripts/resolve_action_sha.sh
Interface: ./resolve_action_sha.sh <owner/repo[/path]> <tag> → prints 40-char SHA to stdout
uses: linesuses: owner/repo@<40-char hex SHA>uses: docker://...uses: ./path/to/actionowner/repo[/subpath] and ref:
uses: {owner}/{repo}@{ref}uses: {owner}/{repo}/{path}@{ref} (sub-path actions)SHA=$(~/.claude/skills/pin-actions/scripts/resolve_action_sha.sh "owner/repo" "v4")
owner/repo@v4 → owner/repo@<SHA> # v4
Before:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: docker/build-push-action/push@v6
After:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: pnpm/action-setup@a3252b7a1b87b11f31ef2a5405c6fe64a35b06b8 # v4
- uses: docker/build-push-action/push@263435318d21b8e681c14492fe198d362a7d2c83 # v6
When asked to look up the SHA for a specific action:
~/.claude/skills/pin-actions/scripts/resolve_action_sha.sh "actions/checkout" "v4"
# → 11bd71901bbe5b1630ceea73d27597364c9af683
Report the SHA and the pinned form:
actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
The script handles both GitHub tag types transparently:
Using GITHUB_TOKEN avoids rate limits:
export GITHUB_TOKEN="ghp_your_token_here"
The script checks for GITHUB_TOKEN automatically and adds the Authorization header when present.
If the script exits with code 1, the tag likely doesn't exist for that repo. Verify:
gh api repos/{owner}/{repo}/git/ref/tags/{tag}GITHUB_TOKEN if unauthenticated)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/address-pr-feedbackSystematic 5-phase workflow for handling PR review comments. Fetches review threads via gh api (not gh pr view), triages by priority, executes fixes via sub-agent, posts inline GitHub replies, and commits. Invoke when asked to "address PR feedback", "respond to review comments", or "handle PR review"./cleanup-worktreesSafely scans all git worktrees, checks merge status and PR state, categorizes them (Merged/PR Closed/Remote Deleted/Active), presents a report, and deletes with user approval. Never deletes the current worktree. Invoke when asked to "clean up worktrees", "remove merged worktrees", or "prune worktrees"./refineIterative visual/UI refinement mode. Make one change at a time, describe it, wait for feedback. Use when tuning visual effects, layouts, or styling. Invoke with /refine./releaseSemantic-version release: extends pr with version bump, tag, GitHub release. Trigger phrases: 'cut a release', 'publish a release', 'tag a version'./shipFull ship lifecycle — lint, test, branch, commit, push, PR, CI check. Use when work is complete and ready to land. Pass --merge to also merge after CI passes. Pass --no-test to skip tests.npx claudepluginhub arosenkranz/agent-config --plugin git-and-pr