feat(ISV-6032): allow SBOM uploads to be verifiable in Konflux E2E #120
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The release pipelines contain a task update-cr-status which merges all JSON files in the directory specified by
collect-data.results.resultsDirPath
. This merged JSON is then attached to the Release custom resource in thestatus.artifacts
field.In the Tekton tasks for product and component-level augmentation, we create a new data structure
SBOMArtifact
which contains all URLs of product or component level SBOMs uploaded to Atlas.The Tekton tasks get a new param,
resultsDirPath
which is used to store the serialized artifact JSONs into.Once the artifacts are attached, we deserialize them in the e2e-tests code and verify that all the URLs have the correct form. This way we can track the number of SBOMs uploaded and their URLs in the E2E tests, verifying that all expected SBOMs were uploaded.
In the future, we could even show these URLs in the Konflux UI, as that uses the same field for other release artifacts.
The git revision in the catalog PR is for the head of this branch for testing, after this PR is merged, I will update them back to the master branch.
The Tekton task image references in this PR are my personal repo for testing, after this PR is merged and the new image is built, I will update them accordingly.
release-service-catalog PR
e2e-tests PR