anomalyco / anomalyco/opencode
GitHub action: pinning the action to a SHA doesn't pin the installer or the CLI version
Open
@jlongster is already working on this.
Since Jul 27, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
github/action.yml resolves both the installer script and the CLI binary at run time:
- name: Get opencode version
run: VERSION=$(curl -sf .../releases/latest | ...)
- name: Install opencode
run: curl -fsSL https://opencode.ai/install | bash
So pinning the action to a commit SHA only pins the composite wrapper — not anything that actually executes. The version resolved from the releases API is used solely as the actions/cache key and is never passed to the installer, so the install is always latest.
Two small changes would fix it:
- run the
./installthat's already checked out at the pinned ref, instead of fetching it from opencode.ai - add an optional
versioninput passed to the installer asVERSION(the installer already reads it:requested_version=${VERSION:-})
Happy to send a PR — I have one working locally.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.