| name | github-action-sha-resolver |
| description | Resolves GitHub Action tags/versions (e.g., @v4) to their full 40-character commit SHAs for security pinning. |
| allowed-tools | mcp_github-mcp_list_tags, mcp_github-mcp_get_tag |
GitHub Action SHA Resolver
This skill provides a secure workflow to identify the exact commit SHA associated with a specific version of a GitHub Action.
Available MCP Tools
| Tool | Purpose |
|---|
mcp_github-mcp_list_tags | Lists all tags for a given repository |
mcp_github-mcp_get_tag | Retrieves detailed information about a specific tag |
Workflow Logic
When a user asks for the SHA of an action version (e.g., actions/checkout@v4):
-
Repository Identification:
- Parse the input into owner (
actions) and repo (checkout).
-
Tag Retrieval:
- Use
mcp_github-mcp_list_tags to list available tags for the repository.
- Search through the results to find the exact tag name match (e.g.,
v4).
- If pagination is needed, continue fetching pages until the tag is found or exhausted.
-
SHA Extraction:
- Extract the
commit.sha from the tag object in the list response.