fix(publish-image): Shrink SBOM attestations to unblock NiFi builds#117
Merged
Conversation
Techassi
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
NiFi builds are continuously failing on the SPDX attest step, Rekor rejects the upload right after the CycloneDX attestation of the same image. I believe this is because, for NiFi, we publish two very large SBOMs shortly after another.
Since the SBOMs currently contain a quite some amount of unnecessary components we can reduce the SBOM size drastically to hopefully fix the problem. We wanted to do that anyway in order to improve the SBOM contents.
Two measures:
SYFT_FILE_METADATA_SELECTION):File-type components have no purl, are useless for vulnerability matching, and made up most of the component count on large images (for NiFi: 9211 of 13045). They were also dropped in the SPDX conversion anyway, so the two published formats disagreed about file inventory.
Example of a file-type component that is now no longer emitted:
jqas syft has no option to suppress these properties.Example:
Before:
After: