anomalyco / anomalyco/opencode

GitHub action: pinning the action to a SHA doesn't pin the installer or the CLI version

Open
#39,163 2 comments 0 reactions 1 assignee View on GitHub

@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 ./install that's already checked out at the pinned ref, instead of fetching it from opencode.ai
  • add an optional version input passed to the installer as VERSION (the installer already reads it: requested_version=${VERSION:-})

Happy to send a PR — I have one working locally.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.