You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Windows, git's includeIf.gitdir: directive performs case-sensitive
path matching, but the Windows filesystem is case-insensitive. When
the runner's GITHUB_WORKSPACE has different casing than the actual
path on disk (e.g. D:\workspaces vs D:\Workspaces), the includeIf
condition fails to match, breaking credential authentication.
This was a regression in v6, which introduced includeIf.gitdir: for
credential isolation. v5 did not use includeIf and was unaffected.
Fix: use includeIf.gitdir/i: (case-insensitive variant) on Windows.
This git feature has been available since git 2.13.0, well before
checkout's minimum requirement of git 2.18.
Also update the cleanup regex to match both gitdir: and gitdir/i:
so credential removal works correctly on Windows.
Fixes#2345
0 commit comments