1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-20 19:06:59 +00:00

fix: wrong perms (#726)

if someone is using image with a non-root user, they will get a permission denied since only root has write perms
This commit is contained in:
Ryan (hackercat) 2021-06-09 23:08:39 +00:00 committed by GitHub
parent f96734321d
commit 6dff1f2f88

View file

@ -159,11 +159,11 @@ func (rc *RunContext) startJobContainer() common.Executor {
Body: rc.EventJSON,
}, &container.FileEntry{
Name: "workflow/envs.txt",
Mode: 0644,
Mode: 0666,
Body: "",
}, &container.FileEntry{
Name: "workflow/paths.txt",
Mode: 0644,
Mode: 0666,
Body: "",
}),
)(ctx)