action-pin
Reviewed
at commit a464c20
New version, not yet reviewed
After an edit that adds a GitHub Actions step pinned to a tag or a branch, names the commit SHA to write instead, from the GitHub API.
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
a464c205f3bd45bde1e26c5d7a8acecca7609d18 - What we checked
-
Watches edits to GitHub Actions workflow files and, when a step uses an action by a tag or branch, looks up the commit SHA on the public GitHub API and tells Claude to write that SHA instead. An optional deny mode stops git commit, push and merge until the actions are pinned. It writes no files and sends no file contents anywhere.
Review details
Static review of the source at the pinned commit; not run. Hooks: tool.call for Edit and Write (adds a context note to the result when an added line in a workflow or composite action file has a uses: ref that is not a 40 or 64 character SHA), tool.call for Bash (only in deny mode, denies git commit/push/merge while an open finding remains; a commit is narrowed to staged files via git diff --cached; there is no bypass), session.start (registers the /action-pin command: status, on, off, mode note|deny, and reads git rev-parse --show-toplevel), turn.complete and prompt.submit (re-reads open workflows with $.fs.read and gives Claude a reminder note). Network: only $.http.fetch to https://api.github.com/repos/{owner}/{repo}/commits/{ref} with Accept application/vnd.github.sha, at most 10 per edit, cached per session; the request carries only the action's owner, repo and ref name, no tokens, no file contents. Failures are logged once and the edit goes through. Local actions (./) and docker:// images are ignored. Stores only the on/off and mode settings in $.store and uses $.sidebar when the sidebar mod is present, else $.ui.log. Deny mode is opt-in (default is note). Runs only read-only git commands. npm dependencies are dev-only tooling (eslint, typescript) and not imported. Everything the modules import was in the bundle; eslint.config.js and Makefile are not loaded by the hooks.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: yes
- Blocks or changes tool calls: yes
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: yes
- Stores data: yes
- Shows something on screen: yes
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/action-pin/)