ci: Harden background-agent MVP git authentication loop - #49373
Merged
Conversation
MrSubidubi
reviewed
Feb 17, 2026
Member
There was a problem hiding this comment.
This seems to be pulled in from another PR and unrelated to the proposed changes here.
| git checkout -B "$BRANCH" origin/main | ||
| git config --local http.https://github.com/.extraheader "AUTHORIZATION: bearer ${GH_TOKEN}" | ||
|
|
||
| if ! git fetch origin main; then |
Member
There was a problem hiding this comment.
Is this fetch even needed? We use the checkout action just above which should ensure that the changes are based on the lates main already. If we are concerned that main is outdated during the n-th consecutive agent run, should we not instead throw this into a matrix job instead?
morgankrey
force-pushed
the
fix/background-agent-mvp-git-auth-refresh
branch
from
February 17, 2026 17:43
d4ce58f to
a14e556
Compare
Reapply GitHub auth headers before each per-crash fetch and skip candidates when fetch/checkout fails so one auth drop does not fail the whole run. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Replace "affected crate(s)" with neutral wording in both the workflow and local runner prompt text. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
morgankrey
force-pushed
the
fix/background-agent-mvp-git-auth-refresh
branch
from
February 17, 2026 17:45
a14e556 to
a6550f1
Compare
morgankrey
marked this pull request as ready for review
February 17, 2026 17:59
jonx
pushed a commit
to jonx/zed-aros
that referenced
this pull request
Jul 17, 2026
…es#49373) ## Summary - refresh git auth headers before each per-crash iteration in `background_agent_mvp` - add guarded `git fetch`/`git checkout` handling so one candidate auth failure doesn’t fail the entire run ## Context - fixes the auth failure seen in workflow run 22106378719 (`fatal: could not read Username for 'https://github.com'`) - related Linear issue: BIZOPS-853 ## Testing - ruby -e "require 'yaml'; YAML.load_file('.github/workflows/background_agent_mvp.yml')" Release Notes: - N/A
jolutz
pushed a commit
to jolutz/zed
that referenced
this pull request
Aug 8, 2026
…es#49373) ## Summary - refresh git auth headers before each per-crash iteration in `background_agent_mvp` - add guarded `git fetch`/`git checkout` handling so one candidate auth failure doesn’t fail the entire run ## Context - fixes the auth failure seen in workflow run 22106378719 (`fatal: could not read Username for 'https://github.com'`) - related Linear issue: BIZOPS-853 ## Testing - ruby -e "require 'yaml'; YAML.load_file('.github/workflows/background_agent_mvp.yml')" Release Notes: - N/A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
background_agent_mvpgit fetch/git checkouthandling so one candidate auth failure doesn’t fail the entire runContext
fatal: could not read Username for 'https://github.com')Testing
Release Notes: