forked from Ivasoft/github-actions
All checks were successful
continuous-integration/drone/push Build is passing
30 lines
826 B
Diff
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)
|
|
}
|