From 4b47b00d44d265f3e0f6d61c1e4f4742ac84171f Mon Sep 17 00:00:00 2001 From: Christian Zunker Date: Mon, 16 Oct 2023 13:23:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Set=20upstream=20for=20ephemeral?= =?UTF-8?q?=20runtimes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The upstream config is needed to fetch vuln reports. Needed to fix https://github.com/mondoohq/server/issues/6511 Signed-off-by: Christian Zunker --- policy/scan/local_scanner.go | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/scan/local_scanner.go b/policy/scan/local_scanner.go index 15bba211..f5de278a 100644 --- a/policy/scan/local_scanner.go +++ b/policy/scan/local_scanner.go @@ -301,6 +301,7 @@ func (s *LocalScanner) distributeJob(job *Job, ctx context.Context, upstream *up return nil, false, err } } + runtime.UpstreamConfig = upstream err = runtime.Connect(&plugin.ConnectReq{ Features: config.Features,