actions / runner-container-hooks

Runner Container Hooks for GitHub Actions
MIT License
69 stars 44 forks source link

Non-existing systemMount folders prevent use of podman #176

Open seanlafferty-ibm opened 3 weeks ago

seanlafferty-ibm commented 3 weeks ago

I am trying to create podman hooks. When I log the json github sends, it includes some system mounts for folders that do not exist on my runner.

      {
        "userProvidedValue": null,
        "sourceVolumePath": "/root/actions-runner/_work/_actions",
        "targetVolumePath": "/__w/_actions",
        "readOnly": false
      },

I believe this works on docker because docker will automatically creating missing mounts on your host. Podman errors on missing dirs https://github.com/containers/podman/issues/6234 Error: statfs /root/actions-runner/_work/_actions: no such file or directory. I tried creating these dirs by hand, but something about the github runner deletes them.

I suppose this is sort of a runner bug moreso than a hook bug, but it's kind of cross-cutting.