diff --git a/pkg/workspace/apply.go b/pkg/workspace/apply.go index 49584ed2a67..71f3349e594 100644 --- a/pkg/workspace/apply.go +++ b/pkg/workspace/apply.go @@ -250,13 +250,6 @@ func findWorkspaceSubstitutionLocationsInSteps(steps []v1.Step) sets.String { for _, e := range step.Env { locationsToCheck.Insert(e.Value) } - for _, p := range step.Params { - locationsToCheck.Insert(p.Value.ArrayVal...) - for k := range p.Value.ObjectVal { - locationsToCheck.Insert(p.Value.ObjectVal[k]) - } - locationsToCheck.Insert(p.Value.StringVal) - } } return locationsToCheck } diff --git a/pkg/workspace/apply_test.go b/pkg/workspace/apply_test.go index a637e2ca1f8..6b5956e40c9 100644 --- a/pkg/workspace/apply_test.go +++ b/pkg/workspace/apply_test.go @@ -1254,23 +1254,6 @@ func TestFindWorkspacesUsedByTask(t *testing.T) { want: sets.NewString( "shared", ), - }, { - name: "workspace used in step Params for stepactions", - ts: &v1.TaskSpec{ - Steps: []v1.Step{{ - Name: "step-name", - Params: []v1.Param{{ - Name: "path", - Value: *v1.NewStructuredValues("$(workspaces.shared.path)"), - }}, - Ref: &v1.Ref{ - Name: "step-action", - }, - }}, - }, - want: sets.NewString( - "shared", - ), }, { name: "workspace used in sidecar env", ts: &v1.TaskSpec{