GitHub action incompatible with actions/checkout@v6 #3681

Closed
opened 2026-02-16 17:41:05 -05:00 by yindo · 2 comments
Owner

Originally created by @amartani on GitHub (Dec 19, 2025).

Originally assigned to: @fwang on GitHub.

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

Originally created by @amartani on GitHub (Dec 19, 2025). Originally assigned to: @fwang on GitHub. ### 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](https://github.com/amartani/oci-extract/blob/f132bec0bb4dc4a6fced5202ed67c58ee2b13422/.github/workflows/opencode.yml) 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
yindo added the bug label 2026-02-16 17:41:05 -05:00
yindo closed this issue 2026-02-16 17:41:05 -05:00
Author
Owner

@rekram1-node commented on GitHub (Dec 19, 2025):

wait but we dont say to use v6 right?

@rekram1-node commented on GitHub (Dec 19, 2025): wait but we dont say to use v6 right?
Author
Owner

@amartani commented on GitHub (Dec 20, 2025):

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 commented on GitHub (Dec 20, 2025): 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3681