Describe the bug
We use self-hosted github runners and it seems megalinter writes on filesystem as root, making future runs impossible. When a github runner tries to delete the old repo to clone a new one, it failes with the error message: Error: Command failed: rm -rf "/home/runners/runner-1/_work/REPO/REPO/.mypy_cache"
To Reproduce
- have self-hosted github runners
- trigger an action. It will pass, however some files will be written on the filesystem with
root permissions
- Trigger the action again. This time it will fail because github runners cannot delete some directories.
Expected behavior
Megalinter should either clean those files up, or it shouldn't be writing those files with root permissions.
Screenshots
[ not provided due to the company policy ]
Describe the bug
We use self-hosted github runners and it seems megalinter writes on filesystem as root, making future runs impossible. When a github runner tries to delete the old repo to clone a new one, it failes with the error message:
Error: Command failed: rm -rf "/home/runners/runner-1/_work/REPO/REPO/.mypy_cache"To Reproduce
rootpermissionsExpected behavior
Megalinter should either clean those files up, or it shouldn't be writing those files with root permissions.
Screenshots
[ not provided due to the company policy ]