WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@kwbauson
Copy link

@kwbauson kwbauson commented Dec 4, 2025

This uses the realpath of the git working directory when configuring credentials so that if the checkout is into a symlink, git when in the real path still includes them.

I ran into this as an issue on a self-hosted macOS runner whose working directory was under /var. On macOS /var is a symlink to /private/var, so when actions/checkout was configuring credentials it was using the symlink path, which was causing the includeIf.gitdir check to fail.

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.

1 participant