diff --git a/plugins/runner/internal/runtimehandler/binary/handler.go b/plugins/runner/internal/runtimehandler/binary/handler.go index 59b1f3492..5930eb42d 100644 --- a/plugins/runner/internal/runtimehandler/binary/handler.go +++ b/plugins/runner/internal/runtimehandler/binary/handler.go @@ -223,7 +223,7 @@ func (h *binaryRuntimeHandler) Logs(ctx context.Context) (io.ReadCloser, error) } func (h *binaryRuntimeHandler) Result(ctx context.Context) (io.ReadCloser, error) { - f, err := os.Open(filepath.Join(h.pluginDir, runtimehandler.RemoteScanResultFileOverride)) + f, err := os.Open(filepath.Join(h.pluginDir, h.outputFilePath)) if err != nil { return nil, fmt.Errorf("unable to open result file: %w", err) }