Skip to content

Commit 51115b8

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 8136435 commit 51115b8

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.6
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.5
3237
* This pipeline is now using trusted artifacts. Therefore, we can remove the comments and timeouts
3338
added to workaround PVC contention issues.

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.5"
7+
app.kubernetes.io/version: "2.0.6"
88
annotations:
99
tekton.dev/pipelines.minVersion: "0.12.1"
1010
tekton.dev/tags: release
@@ -706,14 +706,12 @@ spec:
706706
- name: data
707707
workspace: release-workspace
708708
params:
709-
- name: sbomJsonPath
710-
value: "$(tasks.populate-release-notes.results.sbomDataPath)"
711-
- name: downloadedSbomPath
712-
value: "$(tasks.push-rpm-data-to-pyxis.results.sbomPath)"
709+
- name: snapshotSpec
710+
value: "$(tasks.collect-data.results.snapshotSpec)"
713711
- name: ociStorage
714712
value: $(params.ociStorage)
715713
- name: sourceDataArtifact
716-
value: "$(tasks.push-rpm-data-to-pyxis.results.sourceDataArtifact)"
714+
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
717715
- name: subdirectory
718716
value: $(tasks.collect-data.results.subdirectory)
719717
- name: dataDir
@@ -726,17 +724,16 @@ spec:
726724
value: "$(params.taskGitRevision)"
727725
runAfter:
728726
- collect-data
727+
- apply-mapping
729728
- collect-atlas-params
730-
- push-rpm-data-to-pyxis
731-
- populate-release-notes
732729
- name: upload-component-sbom
733730
when:
734731
- input: "$(tasks.collect-atlas-params.results.secretName)"
735732
operator: notin
736733
values: [""]
737734
params:
738735
- name: sbomDir
739-
value: "$(tasks.push-rpm-data-to-pyxis.results.sbomPath)"
736+
value: "$(tasks.update-component-sbom.results.sbomPath)"
740737
- name: atlasSecretName
741738
value: "$(tasks.collect-atlas-params.results.secretName)"
742739
- name: ssoTokenUrl
@@ -746,7 +743,7 @@ spec:
746743
- name: ociStorage
747744
value: $(params.ociStorage)
748745
- name: sourceDataArtifact
749-
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
746+
value: "$(tasks.update-component-sbom.results.sourceDataArtifact)"
750747
- name: subdirectory
751748
value: $(tasks.collect-data.results.subdirectory)
752749
- name: dataDir
@@ -893,7 +890,7 @@ spec:
893890
- name: ociStorage
894891
value: $(params.ociStorage)
895892
- name: sourceDataArtifact
896-
value: "$(tasks.populate-release-notes.results.sourceDataArtifact)"
893+
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
897894
- name: dataDir
898895
value: $(params.dataDir)
899896
- name: trustedArtifactsDebug
@@ -915,16 +912,17 @@ spec:
915912
- name: data
916913
workspace: release-workspace
917914
runAfter:
915+
- apply-mapping
916+
- collect-data
918917
- collect-atlas-params
919-
- populate-release-notes
920918
- name: upload-product-sbom
921919
when:
922920
- input: "$(tasks.collect-atlas-params.results.secretName)"
923921
operator: notin
924922
values: [""]
925923
params:
926924
- name: sbomDir
927-
value: "$(tasks.create-product-sbom.results.productSBOMPath)"
925+
value: "$(tasks.create-product-sbom.results.sbomPath)"
928926
- name: atlasSecretName
929927
value: "$(tasks.collect-atlas-params.results.secretName)"
930928
- name: ssoTokenUrl

0 commit comments

Comments
 (0)