Skip to content

Commit

Permalink
chore: run hack/generate-ta-tasks.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphbean committed Jul 8, 2024
1 parent 4cb06b0 commit 7ddf5d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions task/oci-copy-oci-ta/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ Given a file in the user's source directory, copy content from arbitrary urls in
|---|---|
|IMAGE_DIGEST|Digest of the artifact just pushed|
|IMAGE_URL|Repository where the artifact was pushed|
|SBOM_BLOB_URL|Link to the SBOM blob pushed to the registry.|

11 changes: 11 additions & 0 deletions task/oci-copy-oci-ta/0.1/oci-copy-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ spec:
description: Digest of the artifact just pushed
- name: IMAGE_URL
description: Repository where the artifact was pushed
- name: SBOM_BLOB_URL
description: Link to the SBOM blob pushed to the registry.
volumes:
- name: varlibcontainers
emptyDir: {}
Expand Down Expand Up @@ -191,3 +193,12 @@ spec:
- cyclonedx
- $(params.IMAGE)
workingDir: /var/workdir
- name: report-sbom-url
image: quay.io/konflux-ci/yq:latest@sha256:974dea6375ee9df561ffd3baf994db2b61777a71f3bcf0050c5dca91ac9b3430
workingDir: /var/workdir
script: |
REPO=${IMAGE%:*}
echo "Found that ${REPO} is the repository for ${IMAGE}"
SBOM_DIGEST=$(sha256sum sbom-cyclonedx.json | awk '{ print $1 }')
echo "Found that ${SBOM_DIGEST} is the SBOM digest"
echo -n "${REPO}@sha256:${SBOM_DIGEST}" | tee $(results.SBOM_BLOB_URL.path)

0 comments on commit 7ddf5d2

Please sign in to comment.