Skip to content

fix: reduce SBOM report artifact volume - #22

Merged
mfahlandt merged 2 commits into
cncf:mainfrom
mfahlandt:fix/batch-report-artifacts
Aug 26, 2026
Merged

fix: reduce SBOM report artifact volume#22
mfahlandt merged 2 commits into
cncf:mainfrom
mfahlandt:fix/batch-report-artifacts

Conversation

@mfahlandt

@mfahlandt mfahlandt commented Aug 26, 2026

Copy link
Copy Markdown
Member

Problem

The reporting changes stopped the GitHub summary page from exploding, but each matrix job still uploaded its own report artifact. On large runs this leaves the workflow with ~2000 artifacts, which makes the Actions UI hard to use.

A second issue is that jobs can legitimately generate nothing in recent mode or when an SBOM already exists, and that should not fail reporting.

Fix

  • write report JSON into a visible report-artifacts/ directory
  • do not fail when a job has no report files to upload
  • merge per-repository report artifacts into a small number of batch artifacts with actions/upload-artifact/merge@v4
  • delete the original per-repository artifacts after merge
  • make the final summary job download only the merged batch artifacts and collect JSON files recursively

This reduces the visible artifact count from thousands down to roughly one CNCF batch artifact, up to eight subproject batch artifacts, and the final consolidated report artifact.

Signed-off-by: Mario Fahlandt mfahlandt@pixel-haufen.de

Signed-off-by: Mario Fahlandt <mfahlandt@pixel-haufen.de>
Signed-off-by: Mario Fahlandt <mfahlandt@pixel-haufen.de>
@mfahlandt
mfahlandt merged commit b21c7c9 into cncf:main Aug 26, 2026
2 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.

1 participant