added shm_size

This commit is contained in:
Brad Rydzewski
2019-10-26 11:33:52 -07:00
parent a319f263c9
commit 3c1ae23a1e
4 changed files with 6 additions and 1 deletions

View File

@@ -115,6 +115,9 @@ func checkStep(step *resource.Step, trusted bool) error {
if trusted == false && len(step.Network) > 0 {
return errors.New("linter: untrusted repositories cannot configure network_mode")
}
if trusted == false && int(step.ShmSize) > 0 {
return errors.New("linter: untrusted repositories cannot configure shm_size")
}
for _, mount := range step.Volumes {
switch mount.Name {
case "workspace", "_workspace", "_docker_socket":