Skip to content

refactor(git): git uses the configured credential helper - #6663

Merged
dan-petty merged 3 commits into
mainfrom
refactor/6653-git-config-passthrough
Nov 21, 2026
Merged

dan-petty merged 3 commits into
mainfrom
refactor/6653-git-config-passthrough

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

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/

@dan-petty dan-petty added type/refactor Type refactor: a new structure, same behavior scope/git Git commands, git configuration, and git credential handling labels Nov 21, 2026
@dan-petty
dan-petty force-pushed the refactor/6653-git-config-passthrough branch from 6e9bd30 to 51f8ab8 Compare November 21, 2026 18:30
build_subprocess_env gives the GIT_CONFIG_COUNT, GIT_CONFIG_KEY_n and
GIT_CONFIG_VALUE_n of the environment to each child of a person, as a
shell does, so git reads the helper of the devcontainer. A process that
acts as the GitHub App gives them to no child. Delete the inserted
credential -c values and the per-call values of infra and deploy-stack.
The infra-onboard fetch and the deploy-stack README now say that git
gets the credential from the helper that it is configured with. Rename
the requirement of the git child that gets no -c value.
@dan-petty
dan-petty force-pushed the refactor/6653-git-config-passthrough branch from 51f8ab8 to a97ba4c Compare November 21, 2026 18:48
@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 18:57
@dan-petty
dan-petty merged commit c0957ae into main Nov 21, 2026
30 checks passed
@dan-petty
dan-petty deleted the refactor/6653-git-config-passthrough branch November 21, 2026 19:00
dan-petty-release Bot added a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.188.4](v0.188.3...v0.188.4)
(2026-11-21)


### Bug Fixes

* **k8s:** cap Tempo query limits under its memory limit
([#6669](#6669))
([62f16d5](62f16d5))
* **roadmap:** fix-conflict runs its fixers only in a runner Job
([#6620](#6620))
([fe2f2e8](fe2f2e8))


### Code Refactoring

* **git:** git uses the configured credential helper
([#6663](#6663))
([c0957ae](c0957ae))

---
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/git Git commands, git configuration, and git credential handling type/refactor Type refactor: a new structure, same behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor(core): git uses the configured credential helper

1 participant