From 768f22904f4e89d1af8506187d52869bc0aa1ecb Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Fri, 13 Mar 2026 12:51:35 +0100 Subject: [PATCH] Fix deprecation error (#6236) --- pipeline/frontend/yaml/linter/linter.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipeline/frontend/yaml/linter/linter.go b/pipeline/frontend/yaml/linter/linter.go index 4951974da..3654de3df 100644 --- a/pipeline/frontend/yaml/linter/linter.go +++ b/pipeline/frontend/yaml/linter/linter.go @@ -310,8 +310,9 @@ func (l *Linter) lintDeprecations(config *WorkflowConfig) error { if len(parsed.RunsOn) > 0 { //nolint:staticcheck err = multierr.Append(err, &pipeline_errors.PipelineError{ - Type: pipeline_errors.PipelineErrorTypeDeprecation, - Message: "Usage of `runs_on` is deprecated, use `when.status`", + Type: pipeline_errors.PipelineErrorTypeDeprecation, + IsWarning: true, + Message: "Usage of `runs_on` is deprecated, use `when.status`", Data: pipeline_errors.DeprecationErrorData{ File: config.File, Field: fmt.Sprintf("%s.runs_on", config.File),