opencode icon indicating copy to clipboard operation
opencode copied to clipboard

GitHub action incompatible with actions/checkout@v6

Open amartani opened this issue 2 weeks ago • 2 comments

Description

actions/checkout@v6 changed how credentials are persisted, which results in the opencode github action workflow to fail with:

Configuring git...
846 |         // Do not change git config when running locally
847 |         if (isMock) return
848 | 
849 |         console.log("Configuring git...")
850 |         const config = "http.https://github.com/.extraheader"
851 |         const ret = await $`git config --local --get ${config}`
                     ^
ShellError: Failed with exit code 1
 exitCode: 1,
   stdout: "",
   stderr: "",

      at new ShellPromise (75:16)
      at BunShell (191:35)
      at configureGit (src/cli/cmd/github.ts:851:27)
      at configureGit (src/cli/cmd/github.ts:845:35)
      at <anonymous> (src/cli/cmd/github.ts:443:17)

Reverting to actions/checkout@v5 fixed the issue.

OpenCode version

1.0.174

Steps to reproduce

  1. Configure the opencode github action as suggested in the documentation
  2. Upgrade actions/checkout to v6
  3. Try to use it

Screenshot and/or share link

Workflow: https://github.com/amartani/oci-extract/blob/f132bec0bb4dc4a6fced5202ed67c58ee2b13422/.github/workflows/opencode.yml Failed run: https://github.com/amartani/oci-extract/actions/runs/20389043613/job/58595395805#step:3:79

Operating System

Linux

Terminal

GitHub Action

amartani avatar Dec 20 '25 04:12 amartani

wait but we dont say to use v6 right?

rekram1-node avatar Dec 20 '25 04:12 rekram1-node

Yes, the current instructions in the repo do work. I had dependabot upgrade my actions, which broke my setup, and I figured I should at least report so that others can find it if it affects them.

amartani avatar Dec 20 '25 05:12 amartani