Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge sbom manipulation steps #1291

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

mkosiarc
Copy link
Contributor

@mkosiarc mkosiarc commented Aug 13, 2024

The steps merge-syft-sboms, merge-cachi2-sbom, create-purl-sbom, create-base-images-sbom were merged into single "prepare-sboms" step. This is done because the tekton results size for a task depends on the number of steps. By reducing the number of the steps we increase the limit.

The scripts from the individual steps were moved to the build-tasks-dockerfiles repo that also contains the Dockerfile for the sbom-utility-scripts image.

STONEBLD-2608

@mkosiarc
Copy link
Contributor Author

Here is the associated PR konflux-ci/build-tasks-dockerfiles#154

@mkosiarc
Copy link
Contributor Author

/retest

#!/bin/python3
import json
echo "Merging contents of sbom-source.json and sbom-image.json into sbom-cyclonedx.json"
python3 /scripts/merge_syft_sboms.py
Copy link
Contributor

@chmeliik chmeliik Aug 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the next improvement, we should make these scripts accept params for the sbom paths, similar to the merge_cachi2_sboms.py and base_images_sbom_script.py scripts.

In the current state, the scripts that don't take params just look like magic :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, let's do that as a next improvement (not part of this round of PRs)

The steps merge-syft-sboms, merge-cachi2-sbom, create-purl-sbom, create-base-images-sbom
were merged into single "prepare-sboms" step. This is done because the
tekton results size for a task depends on the number of steps. By
reducing the number of the steps we increase the limit.

The scripts from the individual steps were moved to the
build-tasks-dockerfiles repo that also contains the Dockerfile for the
sbom-utility-scripts image.

STONEBLD-2608

Signed-off-by: mkosiarc <[email protected]>
- name: merge-syft-sboms
image: registry.access.redhat.com/ubi9/python-39:1-192.1722518946@sha256:0176b477075984d5a502253f951d2502f0763c551275f9585ac515b9f241d73d
- name: prepare-sboms
image: quay.io/redhat-appstudio/sbom-utility-scripts-image@sha256:064eeec1cfb75abd21b533bf0d9870a7a3fb138f30192596dce28061798cbf06
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure we need -image suffix in the mage name.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't, but not sure if it is worth it renaming it now. I would have to create a new repo in quay, create additional PR in build-task-dockerfiles and update it in this one as well.

@mkosiarc mkosiarc requested a review from chmeliik August 14, 2024 10:49
@mkosiarc mkosiarc added this pull request to the merge queue Aug 14, 2024
Merged via the queue into konflux-ci:main with commit 935188b Aug 14, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants