Files
github-actions/patches/001-workdir-bind.patch
Roman Vaníček 2a5ba3bc21
All checks were successful
continuous-integration/drone/push Build is passing
FIX imported and not used after patch is applied
2023-07-31 15:01:45 +02:00

30 lines
826 B
Diff

--- "a/pkg/runner/run_context.go"
+++ "b/pkg/runner/run_context.go"
@@ -14,10 +14,8 @@ import (
"os"
"path/filepath"
"regexp"
- "runtime"
"strings"
- "github.com/opencontainers/selinux/go-selinux"
"github.com/nektos/act/pkg/common"
"github.com/nektos/act/pkg/container"
@@ -142,14 +140,7 @@ func (rc *RunContext) GetBindsAndMounts() ([]string, map[string]string) {
}
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)
}