Files
kubernetes/dev/tekton/tasks/syft-task.yaml
2025-11-23 18:58:51 +01:00

28 lines
670 B
YAML
Executable File

apiVersion: tekton.dev/v1
kind: Task
metadata:
labels:
app.kubernetes.io/version: "0.1"
name: syft
spec:
description: CLI tool and library for generating a Software Bill of Materials from
container images and filesystems
params:
- description: The Arguments to be passed to Syft command.
name: ARGS
type: array
- default: docker.io/anchore/syft:v0.93.0
description: Syft image to be used
name: SYFT_IMAGE
type: string
steps:
- args:
- $(params.ARGS)
computeResources: {}
image: $(params.SYFT_IMAGE)
name: syft
workingDir: $(workspaces.source-dir.path)
workspaces:
- name: source-dir
optional: true