diff --git a/pkg/runner/expression.go b/pkg/runner/expression.go index 90643d09119..3f71f8fce9f 100644 --- a/pkg/runner/expression.go +++ b/pkg/runner/expression.go @@ -480,7 +480,6 @@ func rewriteSubExpression(ctx context.Context, in string, forceFormat bool) (str return out, nil } -//nolint:gocyclo func getEvaluatorInputs(ctx context.Context, rc *RunContext, step step, ghc *model.GithubContext) map[string]interface{} { inputs := map[string]interface{}{} @@ -516,22 +515,6 @@ func getEvaluatorInputs(ctx context.Context, rc *RunContext, step step, ghc *mod } } - if ghc.EventName == "workflow_call" { - config := rc.Run.Workflow.WorkflowCallConfig() - if config != nil && config.Inputs != nil { - for k, v := range config.Inputs { - value := nestedMapLookup(ghc.Event, "inputs", k) - if value == nil { - v.Default.Decode(&value) - } - if v.Type == "boolean" { - inputs[k] = value == "true" - } else { - inputs[k] = value - } - } - } - } return inputs }