Since we are using a self-hosted runner, we are not using root as the default user for our workflows.
Currently, this tool is breaking actions/checkout since it cannot clear the files created by this workflow.
Example error:
Deleting the contents of '/home/actions-runner/org/repo'
Error: File was unable to be removed Error: EACCES: permission denied, unlink '/home/actions-runner/org/repo/build-artifacts-1720079675/my-cmd'
To fix this, this workflow should use the default user by using uid from id -u.
Since we are using a self-hosted runner, we are not using root as the default user for our workflows.
Currently, this tool is breaking
actions/checkout
since it cannot clear the files created by this workflow.Example error:
To fix this, this workflow should use the default user by using uid from
id -u
.