Skip to content

Commit df4f05c

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 999694a commit df4f05c

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
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.8
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.7
3237
* Target for SBOM upload has been changed from Atlas v1 to Atlas v2.
3338

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

Lines changed: 13 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.7"
7+
app.kubernetes.io/version: "2.0.8"
88
annotations:
99
tekton.dev/pipelines.minVersion: "0.12.1"
1010
tekton.dev/tags: release
@@ -707,14 +707,12 @@ spec:
707707
- name: data
708708
workspace: release-workspace
709709
params:
710-
- name: sbomJsonPath
711-
value: "$(tasks.populate-release-notes.results.sbomDataPath)"
712-
- name: downloadedSbomPath
713-
value: "$(tasks.push-rpm-data-to-pyxis.results.sbomPath)"
710+
- name: snapshotSpec
711+
value: "$(tasks.collect-data.results.snapshotSpec)"
714712
- name: ociStorage
715713
value: $(params.ociStorage)
716714
- name: sourceDataArtifact
717-
value: "$(tasks.push-rpm-data-to-pyxis.results.sourceDataArtifact)"
715+
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
718716
- name: subdirectory
719717
value: $(tasks.collect-data.results.subdirectory)
720718
- name: dataDir
@@ -727,17 +725,17 @@ spec:
727725
value: "$(params.taskGitRevision)"
728726
runAfter:
729727
- collect-data
728+
- apply-mapping
730729
- collect-atlas-params
731-
- push-rpm-data-to-pyxis
732-
- populate-release-notes
730+
- push-snapshot
733731
- name: upload-component-sbom
734732
when:
735733
- input: "$(tasks.collect-atlas-params.results.secretName)"
736734
operator: notin
737735
values: [""]
738736
params:
739737
- name: sbomDir
740-
value: "$(tasks.push-rpm-data-to-pyxis.results.sbomPath)"
738+
value: "$(tasks.update-component-sbom.results.sbomPath)"
741739
- name: atlasSecretName
742740
value: "$(tasks.collect-atlas-params.results.secretName)"
743741
- name: ssoTokenUrl
@@ -747,7 +745,7 @@ spec:
747745
- name: ociStorage
748746
value: $(params.ociStorage)
749747
- name: sourceDataArtifact
750-
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
748+
value: "$(tasks.update-component-sbom.results.sourceDataArtifact)"
751749
- name: subdirectory
752750
value: $(tasks.collect-data.results.subdirectory)
753751
- name: dataDir
@@ -894,7 +892,7 @@ spec:
894892
- name: ociStorage
895893
value: $(params.ociStorage)
896894
- name: sourceDataArtifact
897-
value: "$(tasks.populate-release-notes.results.sourceDataArtifact)"
895+
value: "$(tasks.apply-mapping.results.sourceDataArtifact)"
898896
- name: dataDir
899897
value: $(params.dataDir)
900898
- name: trustedArtifactsDebug
@@ -916,16 +914,18 @@ spec:
916914
- name: data
917915
workspace: release-workspace
918916
runAfter:
917+
- apply-mapping
918+
- collect-data
919919
- collect-atlas-params
920-
- populate-release-notes
920+
- push-snapshot
921921
- name: upload-product-sbom
922922
when:
923923
- input: "$(tasks.collect-atlas-params.results.secretName)"
924924
operator: notin
925925
values: [""]
926926
params:
927927
- name: sbomDir
928-
value: "$(tasks.create-product-sbom.results.productSBOMPath)"
928+
value: "$(tasks.create-product-sbom.results.sbomPath)"
929929
- name: atlasSecretName
930930
value: "$(tasks.collect-atlas-params.results.secretName)"
931931
- name: ssoTokenUrl

tasks/managed/create-product-sbom/create-product-sbom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ spec:
123123
--snapshot-path "$(params.dataDir)/$(params.snapshotSpec)" \
124124
--output-path "$sbom_path"
125125
126-
echo -n "$sbom_path" > "$(results.sbomPath.path)"
126+
echo -n "$(params.sbomPath)" > "$(results.sbomPath.path)"
127127
- name: create-trusted-artifact
128128
ref:
129129
resolver: "git"

tasks/managed/update-component-sbom/update-component-sbom.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ spec:
123123
--snapshot-path "$(params.dataDir)/$(params.snapshotSpec)" \
124124
--output-path "$sbom_path"
125125
126-
echo -n "$sbom_path" > "$(results.sbomPath.path)"
126+
echo -n "$(params.sbomPath)" > "$(results.sbomPath.path)"
127127
- name: create-trusted-artifact
128128
ref:
129129
resolver: "git"

0 commit comments

Comments
 (0)