on-internet
← Community

GitHub Actions - .git folder gone when job is running as container

Stack Overflow ·

When I run a workflow job in GitHub actions as a container, the .git folder is missing. There is a checkout action, of course. This prevents me from running git commands as part of the job. Why is that? Everything else is being mounted to the container, so why not the .git folder too? When running the job on the runner itself, the .git folder is there as expected

Comments

Sign in or sign up to comment and upvote.

No comments yet.