Files
github-actions/patches/001-workdir-bind.patch
Roman Vanicek 35ce32a4ed
Some checks failed
continuous-integration/drone/push Build is failing
Fix patch missing LF
2024-04-16 19:26:39 +02:00

35 lines
891 B
Diff

--- "a/pkg/runner/run_context.go"
+++ "b/pkg/runner/run_context.go"
@@ -14,7 +14,6 @@
"os"
"path/filepath"
"regexp"
- "runtime"
"strings"
"github.com/docker/go-connections/nat"
@@ -22,7 +21,6 @@
"github.com/nektos/act/pkg/container"
"github.com/nektos/act/pkg/exprparser"
"github.com/nektos/act/pkg/model"
- "github.com/opencontainers/selinux/go-selinux"
)
// RunContext contains info about current job
@@ -155,14 +153,7 @@
}
if rc.Config.BindWorkdir {
- bindModifiers := ""
- if runtime.GOOS == "darwin" {
- bindModifiers = ":delegated"
- }
- if selinux.GetEnabled() {
- bindModifiers = ":z"
- }
- binds = append(binds, fmt.Sprintf("%s:%s%s", rc.Config.Workdir, ext.ToContainerPath(rc.Config.Workdir), bindModifiers))
+ // Bind done using --container-options command-line option
} else {
mounts[name] = ext.ToContainerPath(rc.Config.Workdir)
}