Last active
November 8, 2023 08:17
-
-
Save karthikjeeyar/4957a1cbb8437abe0d32f43b43a2b6c4 to your computer and use it in GitHub Desktop.
Sample SBOM task format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: tekton.dev/v1 | |
kind: Task | |
metadata: | |
name: sbom-task | |
annotations: | |
task.output.location: results | |
task.results.format: application/text | |
task.results.key: LINK_TO_SBOM | |
spec: | |
results: | |
- name: LINK_TO_SBOM | |
description: Contains the SBOM link | |
steps: | |
- name: print-sbom-results | |
image: bash:latest | |
script: | | |
#!/usr/bin/env bash | |
echo 'quay.io/redhat-user-workloads/karthik-jk-tenant/node-express-hello/node-express-hello:build-8e536-1692702836' | tee $(results.LINK_TO_SBOM.path) | |
--- | |
apiVersion: tekton.dev/v1 | |
kind: PipelineRun | |
metadata: | |
name: pipelinerun-with-sbom-task | |
spec: | |
pipelineSpec: | |
tasks: | |
- name: sbom-task | |
taskRef: | |
name: sbom-task | |
results: | |
- name: LINK_TO_SBOM | |
description: Contains the SBOM link | |
value: $(tasks.sbom-task.results.LINK_TO_SBOM) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment