From 0214e4cd331dfd631eda76524a98c70ff7646472 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sat, 21 Mar 2026 19:40:34 +0100 Subject: [PATCH] Only add compatibility environment variables for drone-ci to plugins (#6271) --- pipeline/runtime/executor.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pipeline/runtime/executor.go b/pipeline/runtime/executor.go index dfb7b0aee..8a363d531 100644 --- a/pipeline/runtime/executor.go +++ b/pipeline/runtime/executor.go @@ -161,8 +161,10 @@ func (r *Runtime) execAll(runnerCtx context.Context, steps []*backend.Step) <-ch return err } - // add compatibility for drone-ci plugins - metadata.SetDroneEnviron(step.Environment) + // Add compatibility environment variables for drone-ci plugins. + if step.Type == backend.StepTypePlugin { + metadata.SetDroneEnviron(step.Environment) + } logger.Debug(). Str("step", step.Name).