Skip to content

Commit bcb0f43

Browse files
committed
feat(ISV-5783): use new SBOM generation workflow
The pipeline is refactored, so that the SBOM generation tasks are no longer dependent on `push-rpm-data-to-pyxis` and `populate-release-notes`. Signed-off-by: Martin Jediny <jedinym@proton.me>
1 parent 1040bbb commit bcb0f43

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

pipelines/managed/rh-advisories/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ the rh-push-to-registry-redhat-io pipeline.
2828
| trustedArtifactsDebug | Flag to enable debug logging in trusted artifacts. Set to a non-empty string to enable | Yes | "" |
2929
| dataDir | The location where data will be stored | Yes | /var/workdir/release |
3030

31+
## Changes in 2.0.5
32+
* The `update-component-sbom` and `create-product-sbom` tasks are refactored to
33+
use the new SBOM generation workflow. They no longer depend on
34+
`push-rpm-data-to-pyxis` and `populate-release-notes`.
35+
3136
## Changes in 2.0.1
3237
* Temporarily allow the `upload-product-sbom` task to fail
3338
* The upload to S3 started giving us 503 errors. It will be investigated in ISV-5887

pipelines/managed/rh-advisories/rh-advisories.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: Pipeline
44
metadata:
55
name: rh-advisories
66
labels:
7-
app.kubernetes.io/version: "2.0.1"
7+
app.kubernetes.io/version: "2.0.5"
88
annotations:
99
tekton.dev/pipelines.minVersion: "0.12.1"
1010
tekton.dev/tags: release
@@ -712,14 +712,12 @@ spec:
712712
- name: data
713713
workspace: release-workspace
714714
params:
715-
- name: sbomJsonPath
716-
value: "$(tasks.populate-release-notes.results.sbomDataPath)"
717-
- name: downloadedSbomPath
718-
value: "$(tasks.push-rpm-data-to-pyxis.results.sbomPath)"
715+
- name: snapshotSpec
716+
value: "$(tasks.collect-data.results.snapshotSpec)"
719717
- name: ociStorage
720718
value: $(params.ociStorage)
721719
- name: sourceDataArtifact
722-
value: "$(tasks.push-rpm-data-to-pyxis.results.sourceDataArtifact)"
720+
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
723721
- name: subdirectory
724722
value: $(tasks.collect-data.results.subdirectory)
725723
- name: dataDir
@@ -732,9 +730,8 @@ spec:
732730
value: "$(params.taskGitRevision)"
733731
runAfter:
734732
- collect-data
733+
- apply-mapping
735734
- collect-atlas-params
736-
- push-rpm-data-to-pyxis
737-
- populate-release-notes
738735
- name: upload-component-sbom
739736
timeout: "4h" # temp workaround until github.com/konflux-ci/release-service/issues/603 is fixed
740737
when:
@@ -743,7 +740,7 @@ spec:
743740
values: [""]
744741
params:
745742
- name: sbomDir
746-
value: "$(tasks.push-rpm-data-to-pyxis.results.sbomPath)"
743+
value: "$(tasks.update-component-sbom.results.sbomPath)"
747744
- name: atlasSecretName
748745
value: "$(tasks.collect-atlas-params.results.secretName)"
749746
- name: ssoTokenUrl
@@ -753,7 +750,7 @@ spec:
753750
- name: ociStorage
754751
value: $(params.ociStorage)
755752
- name: sourceDataArtifact
756-
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
753+
value: "$(tasks.update-component-sbom.results.sourceDataArtifact)"
757754
- name: subdirectory
758755
value: $(tasks.collect-data.results.subdirectory)
759756
- name: dataDir
@@ -904,7 +901,7 @@ spec:
904901
- name: ociStorage
905902
value: $(params.ociStorage)
906903
- name: sourceDataArtifact
907-
value: "$(tasks.populate-release-notes.results.sourceDataArtifact)"
904+
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
908905
- name: dataDir
909906
value: $(params.dataDir)
910907
- name: trustedArtifactsDebug
@@ -926,8 +923,9 @@ spec:
926923
- name: data
927924
workspace: release-workspace
928925
runAfter:
926+
- apply-mapping
927+
- collect-data
929928
- collect-atlas-params
930-
- populate-release-notes
931929
- name: upload-product-sbom
932930
timeout: "4h" # temp workaround until github.com/konflux-ci/release-service/issues/603 is fixed
933931
when:
@@ -936,7 +934,7 @@ spec:
936934
values: [""]
937935
params:
938936
- name: sbomDir
939-
value: "$(tasks.create-product-sbom.results.productSBOMPath)"
937+
value: "$(tasks.create-product-sbom.results.sbomPath)"
940938
- name: atlasSecretName
941939
value: "$(tasks.collect-atlas-params.results.secretName)"
942940
- name: ssoTokenUrl

0 commit comments

Comments
 (0)