From bc807d01469decbba65c603cca731398e1f78506 Mon Sep 17 00:00:00 2001 From: tonythethompson Date: Sat, 22 Aug 2026 04:24:59 -0700 Subject: [PATCH] ci(opencode): authenticate git before first opencode push actions/checkout is configured with persist-credentials: false, so the initial opencode github run had no credentials when it tried to push. Set the same GitHub token extraheader that the salvage block already uses before the first attempt, preventing the 'could not read Username' failure. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .github/workflows/opencode.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/opencode.yml b/.github/workflows/opencode.yml index 574de9f..5ab9e8a 100644 --- a/.github/workflows/opencode.yml +++ b/.github/workflows/opencode.yml @@ -259,6 +259,12 @@ jobs: git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + # Provide git credentials for the first opencode push. actions/checkout + # uses persist-credentials: false, so git has no token unless we set it + # explicitly. The same auth setup is reused in the salvage block below. + git config --local http.https://github.com/.extraheader \ + "AUTHORIZATION: basic $(printf 'x-access-token:%s' "${GH_TOKEN}" | base64 -w 0)" + # Absolute wall-clock deadline for agent work, ~5 minutes before the # 90-minute job timeout. `timeout` SIGTERMs opencode at the deadline so # it can finish the current task and post, with a kill-after backstop so