Skip to content

Commit

Permalink
fix(ISV-5314): update image for create-product-sbom task (#660)
Browse files Browse the repository at this point in the history
There is an update of the image that contains naming fixes of product
level SBOM. This image references the latest image containing the fixes.

JIRA: ISV-5314

Signed-off-by: Ales Raszka <[email protected]>
  • Loading branch information
Allda authored Nov 1, 2024
1 parent 4ccb81b commit 891dd02
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions tasks/create-product-sbom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ releaseNotes content.

## Parameters

| Name | Description | Optional | Default value |
|------------------|--------------------------------------------------------------------------|----------|---------------|
| dataJsonPath | Path to the JSON string of the merged data containing the release notes | No | - |
| Name | Description | Optional | Default value |
| ------------ | ----------------------------------------------------------------------- | -------- | ------------- |
| dataJsonPath | Path to the JSON string of the merged data containing the release notes | No | - |

## Changes in 0.1.1
* The release-service-utils image was updated to include a fix when generating name of product level SBOM - it should be based on "{product name} {product version}"
4 changes: 2 additions & 2 deletions tasks/create-product-sbom/create-product-sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ kind: Task
metadata:
name: create-product-sbom
labels:
app.kubernetes.io/version: "0.1.0"
app.kubernetes.io/version: "0.1.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/tags: release
Expand All @@ -23,7 +23,7 @@ spec:
description: Relative path to the created product-level SBOM in the data workspace.
steps:
- name: create-sbom
image: quay.io/konflux-ci/release-service-utils:c7e14c3521e37e99f407e11d6f7f1b15f1b3ec01
image: quay.io/konflux-ci/release-service-utils:8684920ccae6c73bd9f3f23367490a9c04653a09
script: |
#!/usr/bin/env bash
set -eux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
- name: data
steps:
- name: setup
image: quay.io/konflux-ci/release-service-utils:c7e14c3521e37e99f407e11d6f7f1b15f1b3ec01
image: quay.io/konflux-ci/release-service-utils:8684920ccae6c73bd9f3f23367490a9c04653a09
script: |
#!/usr/bin/env sh
set -eux
Expand Down Expand Up @@ -67,14 +67,14 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:c7e14c3521e37e99f407e11d6f7f1b15f1b3ec01
image: quay.io/konflux-ci/release-service-utils:8684920ccae6c73bd9f3f23367490a9c04653a09
script: |
#!/usr/bin/env sh
set -eux
cp "$(workspaces.data.path)/$(params.sbom)" sbom.json
test "$(jq -r '.name' sbom.json)" == "Red Hat Openstack Product"
test "$(jq -r '.name' sbom.json)" == "Red Hat Openstack Product 123"
# Check product SPDX package and relationship
test "$(jq -r '.packages[0].SPDXID' sbom.json)" == "SPDXRef-product"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
- name: data
steps:
- name: setup
image: quay.io/konflux-ci/release-service-utils:c7e14c3521e37e99f407e11d6f7f1b15f1b3ec01
image: quay.io/konflux-ci/release-service-utils:8684920ccae6c73bd9f3f23367490a9c04653a09
script: |
#!/usr/bin/env sh
set -eux
Expand Down Expand Up @@ -71,14 +71,14 @@ spec:
- name: data
steps:
- name: check-result
image: quay.io/konflux-ci/release-service-utils:c7e14c3521e37e99f407e11d6f7f1b15f1b3ec01
image: quay.io/konflux-ci/release-service-utils:8684920ccae6c73bd9f3f23367490a9c04653a09
script: |
#!/usr/bin/env sh
set -eux
cp "$(workspaces.data.path)/$(params.sbom)" sbom.json
test "$(jq -r '.name' sbom.json)" == "Red Hat Openstack Product"
test "$(jq -r '.name' sbom.json)" == "Red Hat Openstack Product 123"
# Check product SPDX package and relationship
test "$(jq -r '.packages[0].SPDXID' sbom.json)" == "SPDXRef-product"
Expand Down

0 comments on commit 891dd02

Please sign in to comment.