From 01b9c2e9f293c32a83aca4b23b3992d2b797c086 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 5 Oct 2024 16:50:01 +0000 Subject: [PATCH] feat: disable network in containers during build --- artifact/process.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artifact/process.go b/artifact/process.go index 667bfe3..275b1dd 100644 --- a/artifact/process.go +++ b/artifact/process.go @@ -155,6 +155,8 @@ func Build(flog zerolog.Logger, tmp string, ka Artifact, log.Fatal().Err(err).Msg("container creation failure") } + c.Args = append(c.Args, "--network", "none") + output, err = c.Run(outdir, []string{ buildCommand + " && chmod -R 777 /work", })