Last active
December 1, 2023 04:12
-
-
Save karthikjeeyar/4ad15a67115f82d4320ac52663f2b07a to your computer and use it in GitHub Desktop.
This file contains hidden or 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.type: external-link | |
task.results.key: LINK_TO_SBOM | |
spec: | |
results: | |
- name: LINK_TO_SBOM | |
description: Contains the SBOM link | |
steps: | |
- name: print-sbom-results | |
image: quay.io/redhat-appstudio/syft:v0.96.0 | |
script: | | |
#!/bin/sh | |
syft version | |
syft quay.io/bsutter/quarkus-demo:v2 --output cyclonedx-json=sbom-image.json | |
echo 'BEGIN SBOM' | |
cat sbom-image.json | |
echo 'END SBOM' | |
echo 'http://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: IMAGE_URL | |
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