Skip to content

Error: Command failed: rm -rf "/home/runners/runner-1/_work/REPO/REPO/.mypy_cache" #1869

Description

@InCogNiTo124

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

  1. have self-hosted github runners
  2. trigger an action. It will pass, however some files will be written on the filesystem with root permissions
  3. 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 ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    O: stale 🤖This issue or pull request is stale, it will be closed if there is no activitybugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions