Permission problems on Arch Linux docker container on GitHub Workflow

I am building a tool that only works on Arch Linux but GitHub CI does not offer Arch Linux as an operating system, so I have to use a "docker action".

It always worked well in the past, but it suddenly stopped working in the last few days: The shared volume cannot be used to store .cargo directory.

error: failed to get `alpm` as a dependency of package `pacman-repo-builder v0.0.0-rc.48 (/github/workspace)`

Caused by:
  failed to initialize index git repository

Caused by:
  failed to resolve path '/github/home/.cargo/registry/index/github.com-1ecc6299db9ec823/.git/': Operation not permitted; class=Os (2)

Is there a way to fix this?

Resources:

You need to install lastest runc as there's an ongoing issue with github actions.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.