Skip to content

Commit 0d37591

Browse files
devkimittalHarness
authored andcommitted
fix: [CI-15479]: giving 777 permissions to shared folder in harness/ (#51)
* fix: [CI-15479]: giving 777 permissions to shared folder in harness/
1 parent 630a0dc commit 0d37591

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

engine/engine.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818
"github.com/harness/harness-docker-runner/engine/docker"
1919
"github.com/harness/harness-docker-runner/engine/exec"
2020
"github.com/harness/harness-docker-runner/engine/spec"
21+
"github.com/harness/harness-docker-runner/logger"
2122
"github.com/pkg/errors"
2223
)
2324

@@ -64,6 +65,9 @@ func (e *Engine) Setup(ctx context.Context, pipelineConfig *spec.PipelineConfig)
6465
return errors.Wrap(err,
6566
fmt.Sprintf("failed to create directory for host volume path: %s", path))
6667
}
68+
if err := os.Chmod(path, 0777); err != nil {
69+
logger.FromContext(ctx).WithError(err).Errorln("Error while giving permissions to path " + path)
70+
}
6771
}
6872
}
6973

0 commit comments

Comments
 (0)