Repository navigation
Conversation
added 2 commits
November 26, 2026 20:33
With http.https://github.com/.proactiveAuth = basic and no token, Git asks for a password before the first request, so even public clones fail. On a fresh host the zsh plugin clones then print the credential helper's hint and Git errors, and the machine apply health check fails (CI apt-rpi-zero, apt-home-laptop). machine now writes proactiveAuth into github-token.gitconfig only when the token variable resolves at apply time (environment or ~/.env*). Without a token Git stays anonymous and runs the helper only after a 401.
…-helper requirement and add anonymous access without a token
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.
Problem
On main, the CI jobs
apt-rpi-zero (26.04)andapt-home-laptopfail inassert_second_apply_is_idempotent: themachine applyhealth check reportsgit-credential-env: GITHUB_TOKEN is not set.The cause is
http.https://github.com/.proactiveAuth = basicinprivate.gitconfig. It makes Git ask for a credential before the first request. With no token, Git then asks for a password, so even public github.com clones fail. In a fresh container, the antidote clones at the first zsh start fail this way: the helper's hint and Git's error go to stderr, and the plugins stay missing. Making the helper quiet would not help, because GitHub answers 401 to empty or wrong Basic credentials on public repos too.Change
machinewritesproactiveAuth = basicinto the generated~/.config/git/github-token.gitconfigonly when the token variable is set at apply time. It looks in the environment first, then in~/.env*through the checkout's environment loader.private.gitconfigno longer sets the key itself.github-proactive-auth-token, archived: the git-config spec is updated.docs/git.mdis updated as well.Validation
pytest tests/unit/test_dotfiles.py tests/unit/test_gitconfig.py -q: 105 passedtest_host_yaml_install.py,-k "rpi_zero or home_laptop", Ubuntu 26.04, Docker, no token: 2 passedopenspec validate --specs --strict: pass🤖 Generated with Claude Code