Skip to content

Commit

Permalink
🐛 Set upstream for ephemeral runtimes
Browse files Browse the repository at this point in the history
The upstream config is needed to fetch vuln reports.

Needed to fix mondoohq/server#6511

Signed-off-by: Christian Zunker <[email protected]>
  • Loading branch information
czunker committed Oct 16, 2023
1 parent 2858647 commit 4b47b00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions policy/scan/local_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4b47b00

Please sign in to comment.