Skip to content

Regression: Referencing relative tasks in pipeline broken in OpenShift Pipelines 1.20.3 #2549

@mikem-of

Description

@mikem-of
Image

We have a central repo where we store common tasks and pipelines.
The pipelines reference tasks via relative imports.

apiVersion: tekton.dev/v1
kind: Pipeline
metadata:
  name: test-pipeline
  annotations:
    pipelinesascode.tekton.dev/task: "../../common/tasks/task.yaml"
spec:

Since 1.20.3 this now fails in a PipelineRun in Repo B with the following error:

There was an issue validating the commit: "error getting remote task from pipelinerun annotations: error getting remote task "../../common/tasks/task.yaml": path must not contain '..' due to auth vulnerability issue"

Note that it still works when referencing it from Repo A.

This looks like a regression and is now breaking all CI in our central pipeline repo.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions