Skip to content

fix(repo-policy-sync): configure Git credentials for apply mode - #29

Merged
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:bugfix/repo-policy-sync-git-auth
Sep 4, 2026
Merged

fix(repo-policy-sync): configure Git credentials for apply mode#29
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:bugfix/repo-policy-sync-git-auth

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

Why

Apply-mode policy synchronization authenticates the GitHub CLI with GH_TOKEN, but plain Git operations on the cross-repository checkouts do not use that environment variable. As a result, policy updates that need to push branches fail with could not read Username for https://github.com.

What changed

  • Configure Git to use the authenticated GitHub CLI credential helper for github.com when apply mode is selected.
  • Leave plan mode unchanged and run the setup only after the apply token has been verified.

@AlexanderLanin
AlexanderLanin merged commit 35ef100 into eclipse-score:main Sep 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants