v2 causes permission issues on self hosted runners #189
Open
Description
When upgrading from v1 to v2, running this action on self-hosted runners causes the cloned repo on the runner to be owned by root, causing subsequent runs of the same workflow to fail, due to not having enough permissions to access the repo on the runner.
On initial runs of a workflow containing this action, the repo is checked out, owned by the user the runner is installed in. This action then modifies the repo to be owned by root. The next time the same workflow is ran, it is not able to checkout the repo, due to not having enough permission to modify the cloned repo on the runner.
This is confirmed by sshing into the runner itself, and checking the permissions of the cloned repo
Metadata
Assignees
Labels
No labels