Repository navigation
fix(repos): Give git children the session credential - #6479
Merged
Merged
Conversation
devops-cli-service
Bot
force-pushed
the
fix/6340-worktrees-add-has-no-credential-for
branch
3 times, most recently
from
November 20, 2026 00:40
2dbb39e to
c2d4983
Compare
Contributor
Author
|
The steps of the job: Stopped at checks. The stop report is on #6340: #6340 (comment).
|
dan-petty
force-pushed
the
fix/6340-worktrees-add-has-no-credential-for
branch
from
November 21, 2026 13:33
c2d4983 to
7f497c6
Compare
dan-petty
marked this pull request as ready for review
November 21, 2026 13:49
dan-petty
pushed a commit
that referenced
this pull request
Nov 21, 2026
🤖 I have created a release *beep* *boop* --- ## [0.188.0](v0.187.2...v0.188.0) (2026-11-21) ### Features * **roadmap:** Run review scanners in the runner pod ([#6166](#6166)) ([9f164f7](9f164f7)) ### Bug Fixes * **repos:** Give git children the session credential ([#6479](#6479)) ([7f3886e](7f3886e)) * **roadmap:** an alternatives block names no blocker of an item ([#6624](#6624)) ([5eac8e5](5eac8e5)) * **roadmap:** Refuse repair text in stage feasibility lines ([#6323](#6323)) ([c105f59](c105f59)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This was referenced Nov 21, 2026
dan-petty
added a commit
that referenced
this pull request
Nov 21, 2026
Each child of a person now gets the `GIT_CONFIG_COUNT`, `GIT_CONFIG_KEY_<n>` and `GIT_CONFIG_VALUE_<n>` of the environment, as a shell gives them, so git reads the credential helper that the devcontainer sets. A process that acts as the GitHub App gives these keys to no child: its image sets the helper in `/etc/gitconfig`, and until #3700 the shell of the agent can start a process with keys of its own. A caller still cannot set them. Delete the credential `-c` values that the process runner inserted into each network git call (#6479), and the per-call values of `devops infra` and `deploy-stack`. The implement job keeps its values, because its calls read no config file. A test runs `devops repos worktrees add` against a loopback server: the read of `origin` gets the credential of the configured helper, with no `-c` value (#6340). Closes #6653 Change: `openspec/changes/archive/2026-11-21-6653-git-config-passthrough/`
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.
devops repos worktrees add <issue> -r <clone of a private repo>cannot readorigin, so no agent can create a worktree there, and the run removes merged worktrees before that read fails. #6340 records the run of 2026-11-18 on the clone of a private repository and the behavior it expects: each git call of devops that reaches GitHub gets the credential of the session, and a run that cannot pass its preconditions changes nothing in the clone.Closes #6340
Change:
openspec/changes/archive/2026-11-19-6340-worktrees-add-has-no-credential-for/