fix: op not permitted in self-hosted runner (#359)
In self hosted runners in fedora with SELinux enabled, it sometimes gives a random error ``` Error: lsetxattr /var/run/docker.sock: operation not permitted Error: The process '/usr/bin/docker' failed with exit code 126 ``` This seems to happen with docker.sock which is a link to /run/podman/podman.sock looks like lsetxattr is broken for links.
This commit is contained in:
8649
dist/index.js
generated
vendored
8649
dist/index.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -52,7 +52,7 @@ class Docker {
|
|||||||
return `--env UNITY_SERIAL \
|
return `--env UNITY_SERIAL \
|
||||||
--env GITHUB_WORKSPACE=/github/workspace \
|
--env GITHUB_WORKSPACE=/github/workspace \
|
||||||
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
||||||
--volume "/var/run/docker.sock":"/var/run/docker.sock:z" \
|
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
|
||||||
--volume "${githubHome}":"/root:z" \
|
--volume "${githubHome}":"/root:z" \
|
||||||
--volume "${githubWorkflow}":"/github/workflow:z" \
|
--volume "${githubWorkflow}":"/github/workflow:z" \
|
||||||
--volume "${workspace}":"/github/workspace:z" \
|
--volume "${workspace}":"/github/workspace:z" \
|
||||||
|
|||||||
Reference in New Issue
Block a user