Skip to content

fix(ci): pin the OpenCode installer - #37

Merged
olavurellefsen merged 1 commit into
mainfrom
codex/pin-opencode-installer
Aug 12, 2026
Merged

fix(ci): pin the OpenCode installer#37
olavurellefsen merged 1 commit into
mainfrom
codex/pin-opencode-installer

Conversation

@olavurellefsen

Copy link
Copy Markdown
Contributor

What changed

  • replace the unverified remote OpenCode installer pipeline with npm install --global --no-audit --no-fund opencode-ai@1.18.17
  • reuse an already installed exact version and reject version mismatches
  • add a focused shell test covering missing, matching, and mismatched installations
  • document the reproducible installer behavior

Why

flowcore-io/usable#858 failed standards validation twice before validation began. In both jobs, the remote installer downloaded a payload that was not gzip data, while the parallel security validator happened to install the same version successfully. Pinning the official npm package makes the dependency reproducible and lets npm verify package integrity.

Verification

  • bash -n scripts/setup-opencode.sh scripts/test-setup-opencode.sh
  • scripts/test-setup-opencode.sh
  • YAML parsing for action.yml and .github/workflows/test.yml
  • git diff --check

scripts/test-local-quick.sh requires GEMINI_SERVICE_ACCOUNT_KEY, which is unavailable locally; the repository's secret-backed PR integration jobs provide that evidence.

@olavurellefsen
olavurellefsen force-pushed the codex/pin-opencode-installer branch from 09fc599 to 15b5b38 Compare August 12, 2026 21:40
@olavurellefsen
olavurellefsen marked this pull request as ready for review August 12, 2026 21:44
@olavurellefsen
olavurellefsen merged commit 0cf96d3 into main Aug 12, 2026
10 checks passed
@olavurellefsen
olavurellefsen deleted the codex/pin-opencode-installer branch August 12, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant