~comcloudway/builds.sr.ht

49bc3d847433ae12d18005751f4a9f39bfe156e4 — Drew DeVault 5 years ago 511b275
Remove all secrets in context.go if disabled
1 files changed, 4 insertions(+), 0 deletions(-)

M worker/context.go
M worker/context.go => worker/context.go +4 -0
@@ 96,6 96,10 @@ func (wctx *WorkerContext) RunBuild(
		panic(errors.Wrap(err, "job.SetStatus"))
	}

	if !job.Secrets {
		manifest.Secrets = []string{}
	}

	defer func() {
		if err := recover(); err != nil {
			log.Printf("run_build panic: %v", err)