You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
correctly /github/home does not get added to pods executing a docker container.
Some images however (like super-linter) expect /github/home to be existent and writable. In my specific case I found out, that when running super-linter in a k8s-mode selfhosted runner it fails to execute, since it tries to modify the user's .gitconfig (to mark /github/workspace a git safe directory), which fails since the entire homedir does not exist. I've opened super-linter/super-linter#6242 do fix this issue for super-linter, but I would expect that there are more actions out in the wild that will fail in a similar fashion.
Is there any specific reason why this volume mount is excluded?
The text was updated successfully, but these errors were encountered:
I ran into the same issue today when deploying self-hosted k8s runners and attempting to run a docker action that created and modified a file at /github/home/<foo>.txt.
I pulled down the hooks repo and built it into a new actions-runner image with the addition of the volume mount specified for the job container here, which appeared to sort of work.
The one oddity I noticed (that I still haven't fixed) is attempting to run the same docker action twice in a row causes the second to fail with an HttpError: HTTP request failed error.
Is /github/home reserved for use by the primary job container? Would love input from the @actions/actions-launch team
If I understand
runner-container-hooks/packages/k8s/src/k8s/utils.ts
Lines 18 to 68 in 73655d4
/github/home
does not get added to pods executing a docker container.Some images however (like super-linter) expect
/github/home
to be existent and writable. In my specific case I found out, that when running super-linter in a k8s-mode selfhosted runner it fails to execute, since it tries to modify the user's.gitconfig
(to mark/github/workspace
a git safe directory), which fails since the entire homedir does not exist. I've opened super-linter/super-linter#6242 do fix this issue for super-linter, but I would expect that there are more actions out in the wild that will fail in a similar fashion.Is there any specific reason why this volume mount is excluded?
The text was updated successfully, but these errors were encountered: