Skip to content

GitHub action incompatible with actions/checkout@v6 #5827

@amartani

Description

@amartani

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions