Tekton's core idea is simple: a pipeline isn't config for a separate CI server, it's Kubernetes resources executed as pods. Everything else is vocabulary, and debugging CI becomes debugging pods, which you already know how to do.
make core cicdOrientation
A Task is a sequence of steps (containers sharing one pod). A Pipeline wires Tasks together. Running either means creating a TaskRun or a PipelineRun. That's the entire object model, and almost every failure you'll ever debug comes down to a container in a pod that exited non-zero.
Pipeline ──instantiated by──▶ PipelineRun
└─ tasks[] └─ creates one TaskRun per task
└─ Task └─ creates one pod
└─ steps[] └─ one container per step, run in order
sharing /workspace volumes
Steps run sequentially inside the same pod, so they share volumes and land on the same node; that's how the clone step's checkout reaches the build step. The catch is that Kubernetes sums container resource requests across all steps even though they run one at a time (task-level computeResources on the TaskRun exists to claw that overhead back). It also means steps can't be scheduled onto different nodes, and everything in a Task lives or dies together. Tasks, by contrast, run in separate pods and can execute in parallel.
The pieces the exam wires together
| Piece | Carries | Syntax you'll type |
|---|---|---|
| params | Typed values flowing pipeline → task → step | $(params.image) |
| workspaces | Files shared between tasks | $(workspaces.source.path) |
| results | Small strings passed between tasks | $(tasks.clone.results.commit) |
| when | Conditional execution guards | when: [{input: "$(params.env)", operator: in, values: ["prod"]}] |
| finally | Tasks that always run (cleanup, notifications) | spec.finally[] |
| matrix | Fan-out one task over a list of parameter values | matrix.params |
Params support types (string, array, object) and defaults. Results are written by a step to $(results.<name>.path) and are deliberately tiny: because they travel through the TaskRun's status, use them for a digest or a count, never a build log. Workspaces get bound at run time by the PipelineRun to an emptyDir (per-pod, lost between tasks), an existing persistentVolumeClaim (shared, you manage its lifecycle), or a volumeClaimTemplate (shared, created and cleaned up per run; usually the right default). You can also back a workspace with a ConfigMap or Secret, which is a clean way to hand credentials to a step.
Tasks with no runAfter and no shared results run in parallel. Consuming another task's result creates an implicit dependency, which means removing a result reference can accidentally parallelize a pipeline that used to run sequentially. Whenever order matters, state it explicitly with runAfter instead of leaning on a data dependency someone might refactor away.
Identity, credentials, and registries
Each pipeline pod runs under a ServiceAccount (taskRunTemplate.serviceAccountName on the PipelineRun). In real clusters, that SA carries registry credentials via an imagePullSecret or a kubernetes.io/dockerconfigjson Secret linked for Tekton's credential init. Our lab registry skips auth, so kaniko pushes straight to it with --insecure.
The pipeline pushes to kind-registry:5000/demo:v1 because it runs inside the cluster, where localhost points back at the pod itself. From your host terminal, that exact same registry answers at localhost:5001. Keep those two names straight: they come right back in section 5.6 when Kyverno verifies a signature from inside the cluster.
Where Tasks come from
make cicd pre-installs the git-clone and kaniko catalog tasks, and the trivy-scan task lands when you apply the lab example. Run tkn task list to see what's available. Modern Tekton also fetches task definitions on the fly using resolvers (git, hub, or bundles for OCI images holding task YAML) via taskRef.resolver. That's how a platform team distributes a shared, versioned task library without copy-pasting YAML into every repo, so be ready to describe it even if you don't configure one by hand.
Triggers: from a git push to a run
Three CRDs connect a Gitea push event to a live pipeline run:
- EventListener: an HTTP-serving pod that receives the incoming webhook.
- TriggerBinding: pulls fields out of the JSON payload (like
$(body.repository.clone_url)and$(body.after)). - TriggerTemplate: stamps out a fresh
PipelineRunpopulated with those extracted values. - Plus interceptors: filter by event type, validate the webhook secret, or evaluate a CEL expression before anything triggers. Skip the interceptor and your EventListener will happily build anything anyone POSTs to it.
Resolvers, StepActions and Chains, as fields
| taskRef.resolver | params | Use |
|---|---|---|
| git | url, revision, pathInRepo (anonymous clone) or org, repo, revision, pathInRepo (authenticated API) | Shared task library in git, pinned to a revision |
| bundles | bundle (OCI ref), name, kind | Tasks packaged as OCI images, signed and promoted like containers |
| hub | catalog, kind, name, version | Tekton Hub or Artifact Hub catalog tasks |
| cluster | kind, name, namespace | Reference a Task in another namespace (replaces the deprecated ClusterTask) |
| http | url | Fetch a raw YAML URL |
A StepAction is the reusable building block one level below a Task, encapsulating image, command or script, args, env, params, results, workingDir, securityContext, and volumeMounts. A step pulls it in with ref: { name: x } (or ref.resolver for a remote one) and can't set any of those fields itself; doing so triggers a validation error at admission. StepActions are stable (check kubectl api-resources | grep stepaction for the served version on your cluster). For the exam, know why they exist: a platform team ships one vetted kaniko-build StepAction, and app teams compose Tasks from it without copying container boilerplate.
Tekton Chains handles the supply-chain side. It watches completed TaskRuns and PipelineRuns, signs them along with any type-hinted image results (IMAGE_URL and IMAGE_DIGEST results, or artifacts.outputs) using a key from the signing-secrets Secret in tekton-chains (cosign, x509, or KMS), and generates an in-toto attestation in slsa/v1 or slsa/v2alpha4 format. It stores the signature and attestation in the OCI registry beside the image, in Tekton annotations, or in a bucket, then marks the run chains.tekton.dev/signed: "true". Formats, storage backends, and signers live in the chains-config ConfigMap (artifacts.taskrun.format, artifacts.oci.storage, transparency.enabled). Section 5.6 verifies those signatures at admission; the key security property to remember here is that the build pod itself never holds the signing key.
Debugging, which is just pod debugging
| Symptom | Most likely | Command |
|---|---|---|
| Run stays Pending | Workspace PVC unbound, or namespace quota hit | kubectl describe pod -l tekton.dev/pipelineRun=<name> |
| Step fails immediately | Image pull error, bad command, or missing param | tkn pipelinerun logs <name> -f |
| "couldn't find task" | Wrong namespace, or a misconfigured resolver | tkn task list |
| Permission denied pushing | ServiceAccount has no registry secret attached | kubectl get sa <sa> -o yaml |
| Everything ran in parallel | Missing runAfter | Read the Pipeline spec, not the logs |
| Run Succeeded, nothing shipped | A step swallowed a non-zero exit code | tkn taskrun describe --last |
Every step becomes a container named step-<name> inside the TaskRun's pod, so kubectl logs <pod> -c step-build always works when tkn isn't telling you enough. The run's condition carries the summary message, and kubectl get taskrun -o jsonpath='{.items[0].status.conditions[0].message}' is the scriptable check an exam grader would use.
Both execute DAGs of containers, and both sit on the exam's tool list. Keep the distinction crisp: Tekton is purpose-built for CI (building, testing, and publishing artifacts from git events with a CI-focused task catalog), whereas Argo Workflows (section 3.4) is general-purpose orchestration (provisioning sequences, scheduled batch jobs, data pipelines). Their capabilities overlap, but their sweet spots differ, and section 3.6 will ask you to defend the choice.
Status vocabulary, timeouts, cancellation and control flow
Every Tekton run exposes a single condition of type Succeeded, and its (status, reason) pair tells you the whole story. Learn this table and kubectl get pipelinerun -o jsonpath='{.items[*].status.conditions[0].reason}' turns into an instant diagnosis.
| status | reason | Meaning |
|---|---|---|
| Unknown | Started · Running · Cancelled | Picked up; validated and running; cancellation requested and still winding down |
| True | Succeeded | Every task ran and passed |
| True | Completed | Passed, with one or more tasks skipped by when expressions (listed under status.skippedTasks with reasons) |
| False | Failed | At least one TaskRun failed; the message summarizes "Tasks Completed: N (Failed: M, Cancelled 0), Skipped: K" |
| False | PipelineRunTimeout | timeouts.pipeline expired and child TaskRuns were canceled |
| False | Cancelled | Canceled via spec.status (Cancelled, CancelledRunFinally, or StoppedRunFinally); while finally tasks are still running, status stays Unknown with reason CancelledRunningFinally or StoppedRunningFinally |
| False | CreateRunFailed | Couldn't create a child TaskRun (quota, admission refusal, or missing ServiceAccount) |
| False | ParameterMissing · PipelineValidationFailed · InvalidWorkspaceBinding · CouldntGetTask · InvalidTaskResultReference · ResolvingPipelineRef... | Permanent validation errors (often prefixed [User error]); nothing ever ran |
TaskRun reasons add the pod-level failure modes: TaskRunTimeout, TaskRunImagePullFailed, PodEvicted, StepOOM (an OOMKilled step fails the run even if it exited 0), InitContainerOOM, StepFailed, and ToBeRetried (a retry is queued; earlier attempts stay in status.retriesStatus). Individual step exit codes and terminationReason values live under status.steps[].
Timeouts
spec.timeouts.pipelinecaps the whole run (defaulting to globaldefault-timeout-minutes, 60m),timeouts.taskscaps all non-finally tasks together, andtimeouts.finallycaps finally tasks. Tekton validates thatpipeline >= tasks + finally. Setting"0"disables a clock (which requirespipeline: "0"too).- Per-task clocks live at
pipeline.spec.tasks[].timeoutor at run time undertaskRunSpecs[].timeout. Iftimeouts.tasksfires, finally tasks still get to run as long astimeouts.finallyleaves room.
Canceling and pausing, by setting spec.status
Cancelled: kills running TaskRuns, deletes pods, drops retries, and skips pending finally tasks.CancelledRunFinally: kills running TaskRuns, but lets finally tasks run so cleanup and notifications still execute.StoppedRunFinally: lets already-running TaskRuns finish (including retries), schedules no new tasks, and then runs finally.PipelineRunPending: creates the run in a paused state without starting it (handy for manual gates or quota queues); clearing the field kicks it off.
Control flow fields
retries: Non a pipeline task re-runs failed TaskRuns automatically, exposing$(context.pipelineTask.retries)andretry-countinside the task.onError: continueon a pipeline task lets the pipeline keep going after a failure instead of the defaultstopAndFail. On an individual step,onError: continuelets subsequent steps run and exposes$(steps.<name>.exitCode.path).whenevaluatesinput,operator: in|notin, andvalues(plus a CEL form likecel: "'$(params.env)' == 'prod'"behind a feature flag). Watch out: guarding a task doesn't automatically guard its downstream dependents. Cascade thewhenexpression or wrap them in a sub-pipeline.- Inside
finally,$(tasks.<name>.status)evaluates toSucceeded,Failed, orNone(skipped), and$(tasks.status)rolls up toSucceeded,Completed,Failed, orNone. Note that finally tasks run in parallel and can't be ordered withrunAfter. matrix.paramsfans a single pipeline task out across every parameter combination (capped at 256 by default viadefault-max-matrix-combinations-count). Child TaskRuns are named<run>-<task>-<n>, and array results from a matrix task are consumed with$(tasks.x.results.y[*]).- Results travel inside the container termination message, which Kubernetes caps at 4096 bytes per step (including Tekton's metadata). If you hit "Termination message is above max allowed size", either shrink the result or enable the
results-from: sidecar-logsfeature flag.
"The pipeline must always publish a report even when the build fails, and a failed scan must not stop the report" maps cleanly to two fields: put the report task in finally, and either give the scan task onError: continue or let the report inspect $(tasks.scan.status). And "stop the running pipeline while letting cleanup finish" means patching spec.status: CancelledRunFinally, not deleting the PipelineRun.
Exercises
Read examples/tekton/pipeline.yaml first: you'll see the build-and-scan Pipeline, params repo-url and image, one shared workspace flowing through clone → build → scan, and a ready-to-create PipelineRun using generateName. There's one deliberate wrinkle: the seeded demo-app repo only has a README, and kaniko needs a Dockerfile. Adding one is your first move:
source lab.env # push needs credentials
git clone "http://lab:${GITEA_PASS}@gitea.lab:3000/lab/demo-app.git" /tmp/demo-app && cd /tmp/demo-app
cat > Dockerfile <<'EOF'
FROM ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine
COPY README.md /usr/share/nginx/html/index.html
EOF
git add . && git commit -m "make it buildable" && git push
cd - && kubectl create -f examples/tekton/pipeline.yaml # Task + Pipeline + one PipelineRun
tkn pipelinerun logs --last -foutputcaptured 2026-11-18
$ source lab.env # push needs credentials
$ git clone "http://lab:${GITEA_PASS}@gitea.lab:3000/lab/demo-app.git" /tmp/demo-app && cd /tmp/demo-app
Cloning into '/tmp/demo-app'...
warning: redirecting to http://gitea.lab:3000/lab/demo-app.git/
$ cat > Dockerfile <<'EOF'
FROM ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine
COPY README.md /usr/share/nginx/html/index.html
EOF
$ git add . && git commit -m "make it buildable" && git push
[main 9aed222] make it buildable
1 file changed, 2 insertions(+)
create mode 100644 Dockerfile
warning: redirecting to http://gitea.lab:3000/lab/demo-app.git/
To http://gitea.lab:3000/lab/demo-app.git
4b0bfe2..9aed222 main -> main
$ cd - && kubectl create -f examples/tekton/pipeline.yaml # Task + Pipeline + one PipelineRun
task.tekton.dev/trivy-scan created
pipeline.tekton.dev/build-and-scan created
pipelinerun.tekton.dev/build-and-scan-rr7lw created
$ tkn pipelinerun logs --last -f
[clone : clone] + '[' false '=' true ]
[clone : clone] + '[' false '=' true ]
[clone : clone] + '[' false '=' true ]
[clone : clone] + CHECKOUT_DIR=/workspace/output/
[clone : clone] + '[' true '=' true ]
[clone : clone] + cleandir
[clone : clone] + '[' -d /workspace/output/ ]
[clone : clone] + rm -rf '/workspace/output//*'
[clone : clone] + rm -rf '/workspace/output//.[!.]*'
[clone : clone] + rm -rf '/workspace/output//..?*'
[clone : clone] + test -z
[clone : clone] + test -z
[clone : clone] + test -z
[clone : clone] + git config --global --add safe.directory /workspace/output
[clone : clone] + /ko-app/git-init '-url=http://gitea.lab:3000/lab/demo-app.git' '-revision=' '-refspec=' '-path=/workspace/output/' '-sslVerify=true' '-submodules=true' '-depth=1' '-sparseCheckoutDirectories='
[clone : clone] {"level":"info","ts":1794982492.9684846,"caller":"git/git.go:176","msg":"Successfully cloned http://gitea.lab:3000/lab/demo-app.git @ 9aed22286ea2b8dc7457798708de4874b76cf869 (grafted, HEAD) in path /workspace/output/"}
[clone : clone] {"level":"info","ts":1794982493.0753908,"caller":"git/git.go:215","msg":"Successfully initialized and updated submodules in path /workspace/output/"}
[clone : clone] + cd /workspace/output/
[clone : clone] + git rev-parse HEAD
[clone : clone] + RESULT_SHA=9aed22286ea2b8dc7457798708de4874b76cf869
[clone : clone] + EXIT_CODE=0
[clone : clone] + '[' 0 '!=' 0 ]
[clone : clone] + git log -1 '--pretty=%ct'
[clone : clone] + RESULT_COMMITTER_DATE=1794982448
[clone : clone] + printf '%s' 1794982448
[clone : clone] + printf '%s' 9aed22286ea2b8dc7457798708de4874b76cf869
[clone : clone] + printf '%s' http://gitea.lab:3000/lab/demo-app.git
[build : build-and-push] INFO[0000] Retrieving image manifest ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine
[build : build-and-push] INFO[0000] Retrieving image ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine from registry ghcr.io
[build : build-and-push] INFO[0000] Built cross stage deps: map[]
[build : build-and-push] INFO[0000] Retrieving image manifest ghcr.io/nginxinc/nginx-unprivileged:1.27-alpine
[build : build-and-push] INFO[0000] Returning cached image manifest
[build : build-and-push] INFO[0000] Executing 0 build triggers
[build : build-and-push] INFO[0000] Unpacking rootfs as cmd COPY README.md /usr/share/nginx/html/index.html requires it.
[build : build-and-push] INFO[0004] COPY README.md /usr/share/nginx/html/index.html
[build : build-and-push] INFO[0004] Taking snapshot of files...
[build : build-and-push] INFO[0004] Pushing image to kind-registry:5000/demo:v1
[build : build-and-push] INFO[0005] Pushed image to 1 destinations
[build : write-url] kind-registry:5000/demo:v1
[scan : scan] 2026-11-18T06:16:02Z INFO [vulndb] Need to update DB
[scan : scan] 2026-11-18T06:16:02Z INFO [vulndb] Downloading vulnerability DB...
[scan : scan] 2026-11-18T06:16:02Z INFO [vulndb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-db:2"
[scan : scan] 2026-11-18T06:16:18Z INFO [vulndb] Artifact successfully downloaded repo="mirror.gcr.io/aquasec/trivy-db:2"
[scan : scan] 2026-11-18T06:16:18Z INFO [vuln] Vulnerability scanning is enabled
[scan : scan] 2026-11-18T06:16:18Z INFO [secret] Secret scanning is enabled
[scan : scan] 2026-11-18T06:16:18Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
[scan : scan] 2026-11-18T06:16:18Z INFO [secret] Please see https://trivy.dev/docs/v0.76/guide/scanner/secret#recommendation for faster secret detection
[scan : scan] 2026-11-18T06:16:19Z INFO Detected OS family="alpine" version="3.21.3"
[scan : scan] 2026-11-18T06:16:19Z INFO [alpine] Detecting vulnerabilities... os_version="3.21" repository="3.21" pkg_num=67
[scan : scan] 2026-11-18T06:16:19Z INFO Number of language-specific files num=0
[scan : scan] 2026-11-18T06:16:19Z WARN Using severities from other vendors for some vulnerabilities. Read https://trivy.dev/docs/v0.76/guide/scanner/vulnerability#severity-selection for details.
[scan : scan] 2026-11-18T06:16:19Z WARN This OS version is no longer supported by the distribution family="alpine" version="3.21.3"
[scan : scan] 2026-11-18T06:16:19Z WARN The vulnerability detection may be insufficient because security updates are not provided
[scan : scan]
[scan : scan] Report Summary
[scan : scan]
[scan : scan] ┌────────────────────────────────────────────┬────────┬─────────────────┬─────────┐
[scan : scan] │ Target │ Type │ Vulnerabilities │ Secrets │
[scan : scan] ├────────────────────────────────────────────┼────────┼─────────────────┼─────────┤
[scan : scan] │ kind-registry:5000/demo:v1 (alpine 3.21.3) │ alpine │ 71 │ - │
[scan : scan] └────────────────────────────────────────────┴────────┴─────────────────┴─────────┘
[scan : scan] Legend:
[scan : scan] - '-': Not scanned
[scan : scan] - '0': Clean (no security findings detected)
[scan : scan]
[scan : scan]
[scan : scan] kind-registry:5000/demo:v1 (alpine 3.21.3)
[scan : scan] ==========================================
[scan : scan] Total: 71 (HIGH: 68, CRITICAL: 3)
[scan : scan]
[scan : scan] ┌──────────────┬─────────────────┬──────────┬────────┬───────────────────┬───────────────┬──────────────────────────────────────────────────────────────┐
[scan : scan] │ Library │ Vulnerability │ Severity │ Status │ Installed Version │ Fixed Version │ Title │
[scan : scan] ├──────────────┼─────────────────┼──────────┼────────┼───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ brotli-libs │ CVE-2026-111497 │ CRITICAL │ fixed │ 1.1.0-r2 │ 1.1.1-r0 │ brotli: Out-of-Bounds Write in Google Brotli Decoder │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-111497 │
[scan : scan] ├──────────────┼─────────────────┼──────────┤ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ c-ares │ CVE-2026-33630 │ HIGH │ │ 1.34.3-r0 │ 1.34.8-r0 │ c-ares: c-ares: Use-after-free / double-free in │
[scan : scan] │ │ │ │ │ │ │ query-completion handling │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-33630 │
[scan : scan] ├──────────────┼─────────────────┤ │ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ curl │ CVE-2026-5773 │ │ │ 8.12.1-r1 │ 8.14.1-r3 │ curl: libcurl: Wrong file transfer due to incorrect SMB │
[scan : scan] │ │ │ │ │ │ │ connection reuse │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-5773 │
[scan : scan] │ ├─────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-6276 │ │ │ │ │ curl: libcurl: Information disclosure due to cookie leak │
[scan : scan] │ │ │ │ │ │ │ when reusing connections with... │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-6276 │
[scan : scan] │ ├─────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-8286 │ │ │ │ │ curl: curl: Insecure connection establishment due to TLS │
[scan : scan] │ │ │ │ │ │ │ configuration mismatch │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-8286 │
… (210 lines omitted)
[scan : scan] │ ├─────────────────┤ │ │ ├───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-40200 │ │ │ │ 1.2.5-r11 │ musl: musl libc: Arbitrary code execution and denial of │
[scan : scan] │ │ │ │ │ │ │ service via stack-based... │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-40200 │
[scan : scan] ├──────────────┼─────────────────┤ │ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ nghttp2-libs │ CVE-2026-27135 │ │ │ 1.64.0-r0 │ 1.68.1 │ nghttp2: nghttp2: Denial of Service via malformed HTTP/2 │
[scan : scan] │ │ │ │ │ │ │ frames after session termination... │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-27135 │
[scan : scan] ├──────────────┼─────────────────┤ │ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ pcre2 │ CVE-2026-103111 │ │ │ 10.43-r0 │ 10.43-r1 │ pcre2: pcre2: Out-of-bounds write via crafted regular │
[scan : scan] │ │ │ │ │ │ │ expression │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-103111 │
[scan : scan] │ ├─────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-86145 │ │ │ │ │ pcre2: PCRE2: Out-of-bounds write allows arbitrary code │
[scan : scan] │ │ │ │ │ │ │ execution via crafted regular expressions... │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-86145 │
[scan : scan] │ ├─────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-89157 │ │ │ │ │ pcre2: PCRE2: Out-of-bounds write via large pattern input │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-89157 │
[scan : scan] │ ├─────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-89161 │ │ │ │ │ pcre2: PCRE2: Memory corruption vulnerability in │
[scan : scan] │ │ │ │ │ │ │ pcre2_jit_match │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-89161 │
[scan : scan] ├──────────────┼─────────────────┤ │ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ tiff │ CVE-2026-4775 │ │ │ 4.7.0-r0 │ 4.7.2-r0 │ libtiff: libtiff: Arbitrary code execution or denial of │
[scan : scan] │ │ │ │ │ │ │ service via signed integer... │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-4775 │
[scan : scan] ├──────────────┼─────────────────┤ │ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ xz-libs │ CVE-2025-31115 │ │ │ 5.6.3-r0 │ 5.6.3-r1 │ xz: XZ has a heap-use-after-free bug in threaded .xz decoder │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2025-31115 │
[scan : scan] ├──────────────┼─────────────────┤ │ ├───────────────────┼───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ zlib │ CVE-2026-22184 │ │ │ 1.3.1-r2 │ 1.3.2-r0 │ zlib: zlib: Arbitrary code execution via buffer overflow in │
[scan : scan] │ │ │ │ │ │ │ untgz utility │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-22184 │
[scan : scan] │ ├─────────────────┤ │ │ ├───────────────┼──────────────────────────────────────────────────────────────┤
[scan : scan] │ │ CVE-2026-85091 │ │ │ │ 1.3.2-r1 │ zlib: zlib: Heap buffer overflow in gz_vacate() allows │
[scan : scan] │ │ │ │ │ │ │ arbitrary code execution │
[scan : scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2026-85091 │
[scan : scan] └──────────────┴─────────────────┴──────────┴────────┴───────────────────┴───────────────┴──────────────────────────────────────────────────────────────┘
[scan : sbom] 2026/11/18 06:16:19 Skipping step because a previous step failed
failed to get logs for task scan : container step-sbom has failed : [{"key":"StartedAt","value":"2026-11-18T06:16:19.927Z","type":3},{"key":"Reason","value":"Skipped","type":3}]If the scan step fails instead, that's the CVE gate doing its job against today's base image. Inspect the reported CVEs and decide like a platform engineer (bump the base image or pass --ignore-unfixed). You can always kick off a fresh run with tkn pipeline start build-and-scan --last.
skopeo inspect --tls-verify=false docker://localhost:5001/demo:v1 | jq .Digest.Write a manifest-lint Task from scratch that accepts a path param, mounts a source workspace, and runs kustomize build $(params.path) using an image that ships kustomize (registry.k8s.io/kustomize/kustomize:v5.0.0 works well; if pulls are slow, busybox counting grep -c '^kind:' over the manifests is a fair stand-in). Emit a result named objects with the object count, then run it with tkn task start against the cloned platform repo or standalone with a clone step.
tkn taskrun describe --last prints your objects result with a non-zero count.The trivy-scan task exits 1 on HIGH or CRITICAL findings, and an ancient base image guarantees plenty:
tkn task start trivy-scan -p image=nginx:1.19 -w name=source,emptyDir="" --showlog
tkn taskrun list | head -3
kubectl get taskrun -o jsonpath='{.items[0].status.conditions[0].message}'outputcaptured 2026-11-18
$ tkn task start trivy-scan -p image=nginx:1.19 -w name=source,emptyDir="" --showlog
TaskRun started: trivy-scan-run-fhzng
Waiting for logs to be available...
[scan] 2026-11-18T06:17:31Z INFO [vulndb] Need to update DB
[scan] 2026-11-18T06:17:31Z INFO [vulndb] Downloading vulnerability DB...
[scan] 2026-11-18T06:17:31Z INFO [vulndb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-db:2"
[scan] 2026-11-18T06:17:43Z INFO [vulndb] Artifact successfully downloaded repo="mirror.gcr.io/aquasec/trivy-db:2"
[scan] 2026-11-18T06:17:43Z INFO [vuln] Vulnerability scanning is enabled
[scan] 2026-11-18T06:17:43Z INFO [secret] Secret scanning is enabled
[scan] 2026-11-18T06:17:43Z INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
[scan] 2026-11-18T06:17:43Z INFO [secret] Please see https://trivy.dev/docs/v0.76/guide/scanner/secret#recommendation for faster secret detection
[scan] 2026-11-18T06:17:45Z INFO [javadb] Downloading Java DB...
[scan] 2026-11-18T06:17:45Z INFO [javadb] Downloading artifact... repo="mirror.gcr.io/aquasec/trivy-java-db:1"
[scan] 2026-11-18T06:18:23Z INFO [javadb] Artifact successfully downloaded repo="mirror.gcr.io/aquasec/trivy-java-db:1"
[scan] 2026-11-18T06:18:23Z INFO [javadb] Java DB is cached for 3 days. If you want to update the database more frequently, "trivy clean --java-db" command clears the DB cache.
[scan] 2026-11-18T06:18:23Z INFO Detected OS family="debian" version="10.9"
[scan] 2026-11-18T06:18:23Z INFO [debian] Detecting vulnerabilities... os_version="10" pkg_num=135
[scan] 2026-11-18T06:18:23Z INFO Number of language-specific files num=0
[scan] 2026-11-18T06:18:23Z WARN Using severities from other vendors for some vulnerabilities. Read https://trivy.dev/docs/v0.76/guide/scanner/vulnerability#severity-selection for details.
[scan] 2026-11-18T06:18:23Z WARN This OS version is no longer supported by the distribution family="debian" version="10.9"
[scan] 2026-11-18T06:18:23Z WARN The vulnerability detection may be insufficient because security updates are not provided
[scan]
[scan] Report Summary
[scan]
[scan] ┌──────────────────────────┬────────┬─────────────────┬─────────┐
[scan] │ Target │ Type │ Vulnerabilities │ Secrets │
[scan] ├──────────────────────────┼────────┼─────────────────┼─────────┤
[scan] │ nginx:1.19 (debian 10.9) │ debian │ 189 │ - │
[scan] └──────────────────────────┴────────┴─────────────────┴─────────┘
[scan] Legend:
[scan] - '-': Not scanned
[scan] - '0': Clean (no security findings detected)
[scan]
[scan]
[scan] nginx:1.19 (debian 10.9)
[scan] ========================
[scan] Total: 189 (HIGH: 147, CRITICAL: 42)
[scan]
[scan] ┌─────────────────────┬────────────────┬──────────┬──────────────┬───────────────────────────┬───────────────────────────┬──────────────────────────────────────────────────────────────┐
[scan] │ Library │ Vulnerability │ Severity │ Status │ Installed Version │ Fixed Version │ Title │
[scan] ├─────────────────────┼────────────────┼──────────┼──────────────┼───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ curl │ CVE-2022-32221 │ CRITICAL │ fixed │ 7.64.0-4+deb10u2 │ 7.64.0-4+deb10u4 │ curl: POST following PUT confusion │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-32221 │
[scan] │ ├────────────────┼──────────┤ │ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2021-22946 │ HIGH │ │ │ 7.64.0-4+deb10u3 │ curl: Requirement to use TLS not properly enforced for IMAP, │
[scan] │ │ │ │ │ │ │ POP3, and... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-22946 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2022-22576 │ │ │ │ │ curl: OAUTH2 bearer bypass in connection re-use │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-22576 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2022-27781 │ │ │ │ │ curl: CERTINFO never-ending busy-loop │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27781 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2022-27782 │ │ │ │ │ curl: TLS and SSH connection too eager reuse │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-27782 │
[scan] │ ├────────────────┤ │ │ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-27533 │ │ │ │ 7.64.0-4+deb10u6 │ curl: TELNET option IAC injection │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-27533 │
[scan] │ ├────────────────┤ │ │ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-27534 │ │ │ │ 7.64.0-4+deb10u9 │ curl: SFTP path ~ resolving discrepancy │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-27534 │
[scan] ├─────────────────────┼────────────────┼──────────┤ ├───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ dpkg │ CVE-2022-1664 │ CRITICAL │ │ 1.19.7 │ 1.19.8 │ Dpkg::Source::Archive in dpkg, the Debian package management │
[scan] │ │ │ │ │ │ │ system, b ... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-1664 │
[scan] ├─────────────────────┼────────────────┼──────────┼──────────────┼───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ e2fsprogs │ CVE-2022-1304 │ HIGH │ affected │ 1.44.5-1+deb10u3 │ │ e2fsprogs: out-of-bounds read/write via crafted filesystem │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-1304 │
[scan] ├─────────────────────┼────────────────┤ ├──────────────┼───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ gcc-8-base │ CVE-2018-12886 │ │ will_not_fix │ 8.3.0-6 │ │ gcc: spilling of stack protection address in cfgexpand.c and │
[scan] │ │ │ │ │ │ │ function.c leads to... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2018-12886 │
[scan] │ ├────────────────┤ │ │ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2019-15847 │ │ │ │ │ gcc: POWER9 "DARN" RNG intrinsic produces repeated output │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2019-15847 │
[scan] ├─────────────────────┼────────────────┤ ├──────────────┼───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ gzip │ CVE-2022-1271 │ │ fixed │ 1.9-3 │ 1.9-3+deb10u1 │ gzip: arbitrary-file-write vulnerability │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-1271 │
[scan] ├─────────────────────┼────────────────┼──────────┤ ├───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ libc-bin │ CVE-2021-33574 │ CRITICAL │ │ 2.28-10 │ 2.28-10+deb10u2 │ glibc: mq_notify does not handle separately allocated thread │
[scan] │ │ │ │ │ │ │ attributes │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-33574 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2021-35942 │ │ │ │ │ glibc: Arbitrary read in wordexp() │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-35942 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2022-23218 │ │ │ │ │ glibc: Stack-based buffer overflow in svcunix_create via │
[scan] │ │ │ │ │ │ │ long pathnames │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-23218 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2022-23219 │ │ │ │ │ glibc: Stack-based buffer overflow in sunrpc clnt_create via │
[scan] │ │ │ │ │ │ │ a long pathname │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-23219 │
[scan] │ ├────────────────┼──────────┼──────────────┤ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2020-1751 │ HIGH │ will_not_fix │ │ │ glibc: array overflow in backtrace functions for powerpc │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2020-1751 │
[scan] │ ├────────────────┤ ├──────────────┤ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2020-1752 │ │ fixed │ │ 2.28-10+deb10u2 │ glibc: use-after-free in glob() function when expanding │
[scan] │ │ │ │ │ │ │ ~user │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2020-1752 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2020-6096 │ │ │ │ │ glibc: signed comparison vulnerability in the ARMv7 memcpy │
[scan] │ │ │ │ │ │ │ function │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2020-6096 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2021-3326 │ │ │ │ │ glibc: Assertion failure in ISO-2022-JP-3 gconv module │
[scan] │ │ │ │ │ │ │ related to combining characters │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2021-3326 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
… (555 lines omitted)
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-0215 │ │ │ │ │ openssl: use-after-free following BIO_new_NDEF │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-0215 │
[scan] │ ├────────────────┤ │ │ │ ├──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-0286 │ │ │ │ │ openssl: X.400 address type confusion in X.509 GeneralName │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-0286 │
[scan] │ ├────────────────┤ │ │ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-0464 │ │ │ │ 1.1.1n-0+deb10u5 │ openssl: Denial of service by excessive resource usage in │
[scan] │ │ │ │ │ │ │ verifying X509 policy... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-0464 │
[scan] ├─────────────────────┼────────────────┤ ├──────────────┼───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ perl-base │ CVE-2020-16156 │ │ affected │ 5.28.1-6+deb10u1 │ │ perl-CPAN: Bypass of verification of signatures in CHECKSUMS │
[scan] │ │ │ │ │ │ │ files │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2020-16156 │
[scan] │ ├────────────────┤ │ │ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-31484 │ │ │ │ │ perl: CPAN.pm does not verify TLS certificates when │
[scan] │ │ │ │ │ │ │ downloading distributions over HTTPS... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-31484 │
[scan] ├─────────────────────┼────────────────┼──────────┼──────────────┼───────────────────────────┼───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ zlib1g │ CVE-2022-37434 │ CRITICAL │ fixed │ 1:1.2.11.dfsg-1 │ 1:1.2.11.dfsg-1+deb10u2 │ zlib: heap-based buffer over-read and overflow in inflate() │
[scan] │ │ │ │ │ │ │ in inflate.c via a... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2022-37434 │
[scan] │ ├────────────────┤ ├──────────────┤ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2023-45853 │ │ will_not_fix │ │ │ zlib: integer overflow and resultant heap-based buffer │
[scan] │ │ │ │ │ │ │ overflow in zipOpenNewFileInZip4_6 │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2023-45853 │
[scan] │ ├────────────────┼──────────┼──────────────┤ ├───────────────────────────┼──────────────────────────────────────────────────────────────┤
[scan] │ │ CVE-2018-25032 │ HIGH │ fixed │ │ 1:1.2.11.dfsg-1+deb10u1 │ zlib: A flaw found in zlib when compressing (not │
[scan] │ │ │ │ │ │ │ decompressing) certain inputs... │
[scan] │ │ │ │ │ │ │ https://avd.aquasec.com/nvd/cve-2018-25032 │
[scan] └─────────────────────┴────────────────┴──────────┴──────────────┴───────────────────────────┴───────────────────────────┴──────────────────────────────────────────────────────────────┘
[sbom] 2026/11/18 06:18:24 Skipping step because a previous step failed
$ tkn taskrun list | head -3
NAME STARTED DURATION STATUS
trivy-scan-run-fhzng 1 minute ago 1m7s Failed
build-and-scan-rr7lw-scan 2 minutes ago 39s Failed
$ kubectl get taskrun -o jsonpath='{.items[0].status.conditions[0].message}'
All Steps have completed executingNow zoom out one level: inside a full Pipeline, a scan failure halts anything chained after it via runAfter. That's the entire supply-chain argument for putting security gates inside the pipeline instead of behind a manual ticket.
kubectl output alone, without opening a dashboard, is the real exam skill.Wire up an EventListener, a TriggerBinding (pulling the clone URL and commit SHA out of Gitea's push payload), and a TriggerTemplate (creating a PipelineRun with those params). Expose the EventListener Service as a LoadBalancer so Gitea can reach it over the kind network, add the webhook in Gitea's UI (repo settings → webhooks, pointing at http://<EXTERNAL-IP>:8080), and push a commit to demo-app. Budget about an hour; debugging webhook → listener → run once in a lab pays off hugely under exam pressure.
tkn pipelinerun list gains a new run automatically without you touching kubectl, and kubectl get eventlistener reports Ready.A StepAction lets you version and share a single step the same way a Task shares a whole sequence. The rule that trips people up is that a step using ref can't also specify its own image (or command/script/env); watch how clearly admission calls it out.
kubectl api-resources | grep -i stepaction
kubectl apply -f - <<'EOF'
apiVersion: tekton.dev/v1beta1
kind: StepAction
metadata: { name: say, namespace: default }
spec:
image: busybox:1.36
params:
- name: text
type: string
env:
- name: TEXT
value: $(params.text)
script: |
echo "$TEXT"
EOF
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: TaskRun
metadata: { generateName: say-run-, namespace: default }
spec:
taskSpec:
steps:
- name: say
ref: { name: say }
params: [{ name: text, value: hello from a stepaction }]
EOF
sleep 45
tkn taskrun logs --last
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: TaskRun
metadata: { generateName: say-bad-, namespace: default }
spec:
taskSpec:
steps:
- name: say
image: busybox:1.36
ref: { name: say }
params: [{ name: text, value: this will not apply }]
EOF
kubectl delete stepaction sayoutputcaptured 2026-09-12
$ kubectl api-resources | grep -i stepaction
stepactions tekton.dev/v1beta1 true StepAction
$ kubectl apply -f - <<'EOF'
apiVersion: tekton.dev/v1beta1
kind: StepAction
metadata: { name: say, namespace: default }
spec:
image: busybox:1.36
params:
- name: text
type: string
env:
- name: TEXT
value: $(params.text)
script: |
echo "$TEXT"
EOF
stepaction.tekton.dev/say created
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: TaskRun
metadata: { generateName: say-run-, namespace: default }
spec:
taskSpec:
steps:
- name: say
ref: { name: say }
params: [{ name: text, value: hello from a stepaction }]
EOF
taskrun.tekton.dev/say-run-cl79p created
$ sleep 45
$ tkn taskrun logs --last
[say] hello from a stepaction
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: TaskRun
metadata: { generateName: say-bad-, namespace: default }
spec:
taskSpec:
steps:
- name: say
image: busybox:1.36
ref: { name: say }
params: [{ name: text, value: this will not apply }]
EOF
Error from server (BadRequest): error when creating "STDIN": admission webhook "validation.webhook.pipeline.tekton.dev" denied the request: validation failed: image cannot be used with Ref: spec.taskSpec.steps[0].image
$ kubectl delete stepaction say
stepaction.tekton.dev "say" deleted from default namespaceref. Memorize that short list of mutually exclusive fields.A PipelineRun tracks three separate clocks: the overall pipeline, the main tasks, and the finally block. Their math has to add up, and whichever clock expires decides the condition reason you'll have to explain.
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { generateName: slow-, namespace: default }
spec:
timeouts: { pipeline: 1m, tasks: 40s, finally: 20s }
pipelineSpec:
tasks:
- name: sleeper
taskSpec:
steps:
- name: sleep
image: busybox:1.36
script: |
sleep 90
finally:
- name: cleanup
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo cleanup ran
EOF
sleep 90
tkn pipelinerun describe --last
kubectl get pipelinerun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].status.conditions[0]}' | jqoutputcaptured 2026-11-18
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { generateName: slow-, namespace: default }
spec:
timeouts: { pipeline: 1m, tasks: 40s, finally: 20s }
pipelineSpec:
tasks:
- name: sleeper
taskSpec:
steps:
- name: sleep
image: busybox:1.36
script: |
sleep 90
finally:
- name: cleanup
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo cleanup ran
EOF
pipelinerun.tekton.dev/slow-mgd2r created
$ sleep 90
$ tkn pipelinerun describe --last
Name: slow-mgd2r
Namespace: default
Service Account: default
Labels:
tekton.dev/pipeline=slow-mgd2r
Status
STARTED DURATION STATUS
1 minute ago 40s Failed(PipelineRunTimeout)
Message
PipelineRun "slow-mgd2r" failed due to tasks failed to finish within "40s"
TaskRun(s) cancelled: slow-mgd2r-sleeper
Timeouts
Pipeline: 1m0s
Tasks: 40s
Finally: 20s
Taskruns
NAME TASK NAME STARTED DURATION STATUS
slow-mgd2r-sleeper sleeper 1 minute ago 39s Cancelled(TaskRunCancelled)
$ kubectl get pipelinerun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].status.conditions[0]}' | jq
{
"lastTransitionTime": "2026-11-18T06:20:33Z",
"message": "PipelineRun \"slow-mgd2r\" failed due to tasks failed to finish within \"40s\"",
"reason": "PipelineRunTimeout",
"status": "False",
"type": "Succeeded"
}tasks clock rather than the full 1-minute pipeline clock, and the finally task still gets its 20 seconds to run. Be ready to explain what happens if tasks + finally exceeds pipeline.Tekton gives you two cancellation modes (plus a third stop mode, StoppedRunFinally, which lets in-flight work finish). Plain Cancelled halts everything on the spot; CancelledRunFinally kills active tasks while still letting finally run, which is crucial when cleanup releases a lock or posts a status back to git.
# a fixed name needs a pre-delete or the second run reads a leftover from the first
kubectl delete pipelinerun cancel-me --ignore-not-found
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { name: cancel-me, namespace: default }
spec:
pipelineSpec:
tasks:
- name: sleeper
taskSpec:
steps:
- name: sleep
image: busybox:1.36
script: |
sleep 600
finally:
- name: cleanup
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo finally ran after cancellation
EOF
sleep 30
kubectl patch pipelinerun cancel-me --type merge -p '{"spec":{"status":"CancelledRunFinally"}}'
sleep 45
kubectl get pipelinerun cancel-me -o jsonpath='{.status.conditions[0]}' | jq
tkn taskrun list | head -5
tkn taskrun logs cancel-me-cleanup 2>/dev/null | tail -3
kubectl delete pipelinerun cancel-meoutputcaptured 2026-09-12
$ # a fixed name needs a pre-delete or the second run reads a leftover from the first
$ kubectl delete pipelinerun cancel-me --ignore-not-found
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { name: cancel-me, namespace: default }
spec:
pipelineSpec:
tasks:
- name: sleeper
taskSpec:
steps:
- name: sleep
image: busybox:1.36
script: |
sleep 600
finally:
- name: cleanup
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo finally ran after cancellation
EOF
pipelinerun.tekton.dev/cancel-me created
$ sleep 30
$ kubectl patch pipelinerun cancel-me --type merge -p '{"spec":{"status":"CancelledRunFinally"}}'
pipelinerun.tekton.dev/cancel-me patched
$ sleep 45
$ kubectl get pipelinerun cancel-me -o jsonpath='{.status.conditions[0]}' | jq
{
"lastTransitionTime": "2026-09-13T16:39:38Z",
"message": "PipelineRun \"cancel-me\" was cancelled",
"reason": "Cancelled",
"status": "False",
"type": "Succeeded"
}
$ tkn taskrun list | head -5
NAME STARTED DURATION STATUS
cancel-me-cleanup 45 seconds ago 7s Succeeded
cancel-me-sleeper 1 minute ago 30s Cancelled(TaskRunCancelled)
skipper-c2xp8-always 4 hours ago 8s Succeeded
slow-5vv4l-sleeper 5 hours ago 39s Cancelled(TaskRunCancelled)
$ tkn taskrun logs cancel-me-cleanup 2>/dev/null | tail -3
[say] finally ran after cancellation
$ kubectl delete pipelinerun cancel-me
pipelinerun.tekton.dev "cancel-me" deleted from default namespaceCancelled and message PipelineRun "cancel-me" was cancelled, the sleeper TaskRun shows Cancelled(TaskRunCancelled), and cancel-me-cleanup finishes Succeeded with finally ran after cancellation in its logs. You'll only see CancelledRunningFinally during the brief window while finally is still running. Had you patched spec.status to plain Cancelled, cleanup would have been skipped completely.When a when guard evaluates to false, it doesn't fail the pipeline, and it doesn't vanish silently either. The run succeeds and records every skipped task in status, giving you the exact proof when someone asks "why didn't the deploy step run?".
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { generateName: skipper-, namespace: default }
spec:
params: [{ name: env, value: staging }]
pipelineSpec:
params: [{ name: env, type: string }]
tasks:
- name: always
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo this always runs
- name: prod-only
when:
- input: $(params.env)
operator: in
values: [prod]
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo this should not run
EOF
sleep 60
kubectl get pipelinerun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].status.conditions[0]}' | jq
kubectl get pipelinerun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].status.skippedTasks}' | jqoutputcaptured 2026-09-13
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { generateName: skipper-, namespace: default }
spec:
params: [{ name: env, value: staging }]
pipelineSpec:
params: [{ name: env, type: string }]
tasks:
- name: always
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo this always runs
- name: prod-only
when:
- input: $(params.env)
operator: in
values: [prod]
taskSpec:
steps:
- name: say
image: busybox:1.36
script: |
echo this should not run
EOF
pipelinerun.tekton.dev/skipper-c2xp8 created
$ sleep 60
$ kubectl get pipelinerun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].status.conditions[0]}' | jq
{
"lastTransitionTime": "2026-09-13T11:44:16Z",
"message": "Tasks Completed: 1 (Failed: 0, Cancelled 0), Skipped: 1",
"reason": "Completed",
"status": "True",
"type": "Succeeded"
}
$ kubectl get pipelinerun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].status.skippedTasks}' | jq
[
{
"name": "prod-only",
"reason": "When Expressions evaluated to false",
"whenExpressions": [
{
"input": "staging",
"operator": "in",
"values": [
"prod"
]
}
]
}
]Completed (not Succeeded), and status.skippedTasks lists prod-only along with the expression that skipped it. A skipped task is still a successful run; be ready to say that without second-guessing.A matrix fans one task out into one predictably named TaskRun per combination. It's the cleanest way to run the same test across three versions, and that naming pattern is how you immediately locate the one combination that failed.
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { name: fanout, namespace: default }
spec:
pipelineSpec:
tasks:
- name: check
matrix:
params:
- name: version
value: ["1.35", "1.36", "1.37"]
taskSpec:
params: [{ name: version, type: string }]
steps:
- name: say
image: busybox:1.36
script: |
echo checking $(params.version)
EOF
sleep 75
tkn taskrun list | head -6
kubectl get pipelinerun fanout -o jsonpath='{.status.childReferences[*].name}{"\n"}'
kubectl delete pipelinerun fanoutoutputcaptured 2026-09-12
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata: { name: fanout, namespace: default }
spec:
pipelineSpec:
tasks:
- name: check
matrix:
params:
- name: version
value: ["1.35", "1.36", "1.37"]
taskSpec:
params: [{ name: version, type: string }]
steps:
- name: say
image: busybox:1.36
script: |
echo checking $(params.version)
EOF
pipelinerun.tekton.dev/fanout created
$ sleep 75
$ tkn taskrun list | head -6
NAME STARTED DURATION STATUS
fanout-check-1 1 minute ago 28s Succeeded
fanout-check-2 1 minute ago 29s Succeeded
fanout-check-0 1 minute ago 10s Succeeded
say-run-cl79p 2 minutes ago 10s Succeeded
provenance-lpwcp 5 hours ago 11s Succeeded
$ kubectl get pipelinerun fanout -o jsonpath='{.status.childReferences[*].name}{"\n"}'
fanout-check-1 fanout-check-2 fanout-check-0
$ kubectl delete pipelinerun fanout
pipelinerun.tekton.dev "fanout" deleted from default namespacefanout-check-0 through -2, and the PipelineRun's childReferences lists all three. Because any single failure fails the whole matrix task, think through what that means if you fan out across environments.Tekton Chains isn't bundled into make cicd, so this block installs it and mints a signing key. Tear it down with the cleanup block at the bottom once you're done, or keep it around if you want to explore signing further.
The upstream release ships an empty signing-secrets Secret, so we replace it with a real cosign key pair. cosign generate-key-pair prompts interactively unless COSIGN_PASSWORD is set, which is why we pass an empty password here (never do that with real keys). Notice the big takeaway: you don't touch the pipeline YAML at all. Chains watches completed TaskRuns from the outside and signs what they produce.
kubectl apply -f https://storage.googleapis.com/tekton-releases/chains/latest/release.yaml
kubectl -n tekton-chains rollout status deploy/tekton-chains-controller --timeout=300s
kubectl -n tekton-chains get secret signing-secrets -o jsonpath='{.data}{"\n"}'
kubectl -n tekton-chains delete secret signing-secrets
# in a subshell under /tmp, so the cosign.pub it writes stays out of your working directory
(cd /tmp && COSIGN_PASSWORD='' cosign generate-key-pair k8s://tekton-chains/signing-secrets)
kubectl -n tekton-chains get secret signing-secrets -o json | jq '.data | keys'
kubectl -n tekton-chains patch cm chains-config --type merge -p '{"data":{"artifacts.taskrun.format":"in-toto","artifacts.taskrun.storage":"tekton","artifacts.oci.storage":"tekton"}}'
kubectl -n tekton-chains rollout restart deploy/tekton-chains-controller
kubectl -n tekton-chains rollout status deploy/tekton-chains-controller --timeout=180s
kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: TaskRun
metadata: { generateName: signed-, namespace: default }
spec:
taskSpec:
steps:
- name: build
image: busybox:1.36
script: |
echo pretend this built something
EOF
sleep 60
kubectl get taskrun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].metadata.annotations}' | jq 'with_entries(select(.key | startswith("chains")))'outputcaptured 2026-11-18
$ kubectl apply -f https://storage.googleapis.com/tekton-releases/chains/latest/release.yaml
namespace/tekton-chains created
secret/signing-secrets created
configmap/chains-config created
deployment.apps/tekton-chains-controller created
clusterrolebinding.rbac.authorization.k8s.io/tekton-chains-controller-cluster-access created
clusterrole.rbac.authorization.k8s.io/tekton-chains-controller-cluster-access created
clusterrole.rbac.authorization.k8s.io/tekton-chains-controller-tenant-access created
clusterrolebinding.rbac.authorization.k8s.io/tekton-chains-controller-tenant-access created
serviceaccount/tekton-chains-controller created
role.rbac.authorization.k8s.io/tekton-chains-leader-election created
rolebinding.rbac.authorization.k8s.io/tekton-chains-controller-leaderelection created
role.rbac.authorization.k8s.io/tekton-chains-info created
rolebinding.rbac.authorization.k8s.io/tekton-chains-info created
configmap/chains-info created
configmap/tekton-chains-config-leader-election created
configmap/config-logging created
configmap/tekton-chains-config-observability created
service/tekton-chains-metrics created
$ kubectl -n tekton-chains rollout status deploy/tekton-chains-controller --timeout=300s
Waiting for deployment "tekton-chains-controller" rollout to finish: 0 of 1 updated replicas are available...
deployment "tekton-chains-controller" successfully rolled out
$ kubectl -n tekton-chains get secret signing-secrets -o jsonpath='{.data}{"\n"}'
$ kubectl -n tekton-chains delete secret signing-secrets
secret "signing-secrets" deleted from tekton-chains namespace
$ # in a subshell under /tmp, so the cosign.pub it writes stays out of your working directory
$ (cd /tmp && COSIGN_PASSWORD='' cosign generate-key-pair k8s://tekton-chains/signing-secrets)
Successfully created secret signing-secrets in namespace tekton-chains
Public key written to cosign.pub
$ kubectl -n tekton-chains get secret signing-secrets -o json | jq '.data | keys'
[
"cosign.key",
"cosign.password",
"cosign.pub"
]
$ kubectl -n tekton-chains patch cm chains-config --type merge -p '{"data":{"artifacts.taskrun.format":"in-toto","artifacts.taskrun.storage":"tekton","artifacts.oci.storage":"tekton"}}'
configmap/chains-config patched
$ kubectl -n tekton-chains rollout restart deploy/tekton-chains-controller
deployment.apps/tekton-chains-controller restarted
$ kubectl -n tekton-chains rollout status deploy/tekton-chains-controller --timeout=180s
Waiting for deployment "tekton-chains-controller" rollout to finish: 0 out of 1 new replicas have been updated...
Waiting for deployment "tekton-chains-controller" rollout to finish: 1 old replicas are pending termination...
Waiting for deployment "tekton-chains-controller" rollout to finish: 1 old replicas are pending termination...
deployment "tekton-chains-controller" successfully rolled out
$ kubectl create -f - <<'EOF'
apiVersion: tekton.dev/v1
kind: TaskRun
metadata: { generateName: signed-, namespace: default }
spec:
taskSpec:
steps:
- name: build
image: busybox:1.36
script: |
echo pretend this built something
EOF
taskrun.tekton.dev/signed-mzmn4 created
$ sleep 60
$ kubectl get taskrun --sort-by=.metadata.creationTimestamp -o jsonpath='{.items[-1:].metadata.annotations}' | jq 'with_entries(select(.key | startswith("chains")))'
{
"chains.tekton.dev/cert-taskrun-cd48c039-4cbb-4ad9-96e2-7bbb44e9d261": "",
"chains.tekton.dev/chain-taskrun-cd48c039-4cbb-4ad9-96e2-7bbb44e9d261": "",
"chains.tekton.dev/payload-taskrun-cd48c039-4cbb-4ad9-96e2-7bbb44e9d261": "eyJfdHlwZSI6Imh0dHBzOi8vaW4tdG90by5pby9TdGF0ZW1lbnQvdjAuMSIsICJwcmVkaWNhdGVUeXBlIjoiaHR0cHM6Ly9zbHNhLmRldi9wcm92ZW5hbmNlL3YwLjIiLCAicHJlZGljYXRlIjp7ImJ1aWxkQ29uZmlnIjp7InN0ZXBzIjpbeyJhbm5vdGF0aW9ucyI6bnVsbCwgImFyZ3VtZW50cyI6bnVsbCwgImVudHJ5UG9pbnQiOiJlY2hvIHByZXRlbmQgdGhpcyBidWlsdCBzb21ldGhpbmdcbiIsICJlbnZpcm9ubWVudCI6eyJjb250YWluZXIiOiJidWlsZCIsICJpbWFnZSI6Im9jaTovL2RvY2tlci5pby9saWJyYXJ5L2J1c3lib3hAc2hhMjU2OjczYWFmMDkwZjNkODVhYTM0ZWUxOTk4NTdmMDNmYTNhOTVjOGVkZTJmZmQ0Y2MyY2RiNWI5NGU1NjZiMTE2NjIifX1dfSwgImJ1aWxkVHlwZSI6InRla3Rvbi5kZXYvdjEvVGFza1J1biIsICJidWlsZGVyIjp7ImlkIjoiaHR0cHM6Ly90ZWt0b24uZGV2L2NoYWlucy92MiJ9LCAiaW52b2NhdGlvbiI6eyJjb25maWdTb3VyY2UiOnt9LCAiZW52aXJvbm1lbnQiOnsiYW5ub3RhdGlvbnMiOnsicGlwZWxpbmUudGVrdG9uLmRldi9yZWxlYXNlIjoiZmNiYTUyMiJ9LCAibGFiZWxzIjp7ImFwcC5rdWJlcm5ldGVzLmlvL21hbmFnZWQtYnkiOiJ0ZWt0b24tcGlwZWxpbmVzIn19LCAicGFyYW1ldGVycyI6e319LCAibWF0ZXJpYWxzIjpbeyJkaWdlc3QiOnsic2hhMjU2IjoiNzNhYWYwOTBmM2Q4NWFhMzRlZTE5OTg1N2YwM2ZhM2E5NWM4ZWRlMmZmZDRjYzJjZGI1Yjk0ZTU2NmIxMTY2MiJ9LCAidXJpIjoib2NpOi8vZG9ja2VyLmlvL2xpYnJhcnkvYnVzeWJveCJ9XSwgIm1ldGFkYXRhIjp7ImJ1aWxkRmluaXNoZWRPbiI6IjIwMjYtMTEtMThUMDk6MjA6MTZaIiwgImJ1aWxkU3RhcnRlZE9uIjoiMjAyNi0xMS0xOFQwOToyMDowNVoiLCAiY29tcGxldGVuZXNzIjp7ImVudmlyb25tZW50IjpmYWxzZSwgIm1hdGVyaWFscyI6ZmFsc2UsICJwYXJhbWV0ZXJzIjpmYWxzZX0sICJyZXByb2R1Y2libGUiOmZhbHNlfX19",
"chains.tekton.dev/signature-taskrun-cd48c039-4cbb-4ad9-96e2-7bbb44e9d261": "eyJwYXlsb2FkVHlwZSI6ImFwcGxpY2F0aW9uL3ZuZC5pbi10b3RvK2pzb24iLCJwYXlsb2FkIjoiZXlKZmRIbHdaU0k2SW1oMGRIQnpPaTh2YVc0dGRHOTBieTVwYnk5VGRHRjBaVzFsYm5RdmRqQXVNU0lzSUNKd2NtVmthV05oZEdWVWVYQmxJam9pYUhSMGNITTZMeTl6YkhOaExtUmxkaTl3Y205MlpXNWhibU5sTDNZd0xqSWlMQ0FpY0hKbFpHbGpZWFJsSWpwN0ltSjFhV3hrUTI5dVptbG5JanA3SW5OMFpYQnpJanBiZXlKaGJtNXZkR0YwYVc5dWN5STZiblZzYkN3Z0ltRnlaM1Z0Wlc1MGN5STZiblZzYkN3Z0ltVnVkSEo1VUc5cGJuUWlPaUpsWTJodklIQnlaWFJsYm1RZ2RHaHBjeUJpZFdsc2RDQnpiMjFsZEdocGJtZGNiaUlzSUNKbGJuWnBjbTl1YldWdWRDSTZleUpqYjI1MFlXbHVaWElpT2lKaWRXbHNaQ0lzSUNKcGJXRm5aU0k2SW05amFUb3ZMMlJ2WTJ0bGNpNXBieTlzYVdKeVlYSjVMMkoxYzNsaWIzaEFjMmhoTWpVMk9qY3pZV0ZtTURrd1pqTmtPRFZoWVRNMFpXVXhPVGs0TlRkbU1ETm1ZVE5oT1RWak9HVmtaVEptWm1RMFkyTXlZMlJpTldJNU5HVTFOalppTVRFMk5qSWlmWDFkZlN3Z0ltSjFhV3hrVkhsd1pTSTZJblJsYTNSdmJpNWtaWFl2ZGpFdlZHRnphMUoxYmlJc0lDSmlkV2xzWkdWeUlqcDdJbWxrSWpvaWFIUjBjSE02THk5MFpXdDBiMjR1WkdWMkwyTm9ZV2x1Y3k5Mk1pSjlMQ0FpYVc1MmIyTmhkR2x2YmlJNmV5SmpiMjVtYVdkVGIzVnlZMlVpT250OUxDQWlaVzUyYVhKdmJtMWxiblFpT25zaVlXNXViM1JoZEdsdmJuTWlPbnNpY0dsd1pXeHBibVV1ZEdWcmRHOXVMbVJsZGk5eVpXeGxZWE5sSWpvaVptTmlZVFV5TWlKOUxDQWliR0ZpWld4eklqcDdJbUZ3Y0M1cmRXSmxjbTVsZEdWekxtbHZMMjFoYm1GblpXUXRZbmtpT2lKMFpXdDBiMjR0Y0dsd1pXeHBibVZ6SW4xOUxDQWljR0Z5WVcxbGRHVnljeUk2ZTMxOUxDQWliV0YwWlhKcFlXeHpJanBiZXlKa2FXZGxjM1FpT25zaWMyaGhNalUySWpvaU56TmhZV1l3T1RCbU0yUTROV0ZoTXpSbFpURTVPVGcxTjJZd00yWmhNMkU1TldNNFpXUmxNbVptWkRSall6SmpaR0kxWWprMFpUVTJObUl4TVRZMk1pSjlMQ0FpZFhKcElqb2liMk5wT2k4dlpHOWphMlZ5TG1sdkwyeHBZbkpoY25rdlluVnplV0p2ZUNKOVhTd2dJbTFsZEdGa1lYUmhJanA3SW1KMWFXeGtSbWx1YVhOb1pXUlBiaUk2SWpJd01qWXRNVEV0TVRoVU1EazZNakE2TVRaYUlpd2dJbUoxYVd4a1UzUmhjblJsWkU5dUlqb2lNakF5TmkweE1TMHhPRlF3T1RveU1Eb3dOVm9pTENBaVkyOXRjR3hsZEdWdVpYTnpJanA3SW1WdWRtbHliMjV0Wlc1MElqcG1ZV3h6WlN3Z0ltMWhkR1Z5YVdGc2N5STZabUZzYzJVc0lDSndZWEpoYldWMFpYSnpJanBtWVd4elpYMHNJQ0p5WlhCeWIyUjFZMmxpYkdVaU9tWmhiSE5sZlgxOSIsInNpZ25hdHVyZXMiOlt7ImtleWlkIjoiU0hBMjU2OmluRm1BVUlPNDVwcUl0M2R0YjV1bVpSNFZDRDg5QTk5Yk9Ic0w1UnJodVEiLCJzaWciOiJNRVVDSUhzNUZwNDZoMjZPK1oySkZCMkptMlhzMDQzcVBwb2RPOHRZeW8xakNSQmxBaUVBeUZ5SHdPNmpUY2RzL1Fjc0hJQ0ZZdEl4MEorbEF2TUlqQWREa2UwWUN5az0ifV19",
"chains.tekton.dev/signed": "true"
}chains.tekton.dev/signed: "true", written by a controller the TaskRun never even referenced. If it reads failed instead, pull the chains-controller logs; it's almost always the signing key or storage backend config.When removing Chains, delete your TaskRuns before uninstalling the controller: Chains attaches a chains.tekton.dev/taskrun finalizer to every TaskRun it touches, and if the controller is gone nothing removes it, leaving TaskRuns and their pods stuck in Terminating.
kubectl delete taskrun --all -n default
kubectl delete -f https://storage.googleapis.com/tekton-releases/chains/latest/release.yamlSelf-check
Two tasks in a pipeline run at the same time and you did not expect it. Why?
There's no runAfter and no result dependency linking them, so Tekton runs them concurrently by default. Ordering only comes from an explicit runAfter or consuming another task's result; list order in the YAML means nothing.
How do files get from the clone task to the build task, and what happens if you bind the workspace to an emptyDir?
Through a shared workspace backed by a PVC or volumeClaimTemplate mounted into both tasks. Because an emptyDir lives inside a single pod, each task gets its own brand-new empty directory and the build step sees nothing, a classic "why is my workspace empty?" trap.
Where do you put a step that must run whether the pipeline passed or failed?
In spec.finally. Those tasks run after every main task finishes regardless of outcome, and they can inspect $(tasks.status) to branch. Cleanup, notifications, and teardown belong there rather than as a trailing runAfter task that gets skipped on failure.
Why does the pipeline push to kind-registry:5000 and not localhost:5001?
Because the build runs inside a pod where localhost is the pod's own network namespace. In-cluster pods reach the registry via its CoreDNS name (kind-registry:5000), while your host reaches the same store over its published port (localhost:5001). Different hostnames, identical registry and digests.
Your EventListener is Ready and a push produces nothing. Diagnostic ladder?
Walk the chain in order: did Gitea actually deliver the webhook (check its delivery log)? Did the EventListener receive it (check its pod logs)? Did an interceptor drop it (event type, secret mismatch, or CEL rule)? Did the TriggerBinding extract every field the TriggerTemplate expects (a missing param fails PipelineRun creation)? Each rung leaves its own error.
A PipelineRun shows status True with reason Completed rather than Succeeded. What happened?
The run passed, but one or more tasks were skipped by a when expression; check status.skippedTasks to see which ones and why. Scripts or graders checking reason == Succeeded will trip on this, so check status == "True" on the Succeeded condition instead.
Which spec.status value stops new tasks, lets running ones finish and still runs finally?
StoppedRunFinally. By comparison, CancelledRunFinally kills in-flight TaskRuns before running finally, and plain Cancelled kills everything and skips finally. PipelineRunPending goes the other way: it creates a run parked until you clear the field.
A step referencing a StepAction also sets image. What happens, and why is the design that way?
Admission rejects it with a validation error: a step using ref can't set image, command, args, script, env, or volumeMounts, because the StepAction owns the execution details while the step just wires params and results. That boundary lets a platform team ship one vetted StepAction and let tenants compose Tasks without touching container config.
Docs to know your way around
- tekton.dev: Tasks, Pipelines, and the workspaces page (volumeClaimTemplate binding especially); Triggers' TriggerBinding examples for payload paths; the resolvers page.
- Offline:
kubectl explain pipelinerun.spec,tkn <verb> --help, andtkn task describe <name>to read a catalog task's params and workspaces without leaving the terminal. - tekton.dev/docs/pipelines/pipelineruns ("PipelineRun status", "Configuring a failure timeout", "Canceling"): the status/reason table and the three spec.status cancellation values.
- tekton.dev/docs/pipelines/stepactions and /resolution: StepAction fields and the ref rules; the git, bundles, hub, cluster and http resolver parameters. tekton.dev/docs/chains/config for the chains-config keys.
make down-cicd