Skip to content

fix: skip repos returning 404 instead of failing the matrix job - #21

Merged
mfahlandt merged 1 commit into
cncf:mainfrom
mfahlandt:fix/graceful-404-skip
Aug 26, 2026
Merged

fix: skip repos returning 404 instead of failing the matrix job#21
mfahlandt merged 1 commit into
cncf:mainfrom
mfahlandt:fix/graceful-404-skip

Conversation

@mfahlandt

Copy link
Copy Markdown
Member

Problem

When a repository's releases or tags API returns HTTP 404 (e.g. spiffe/vsecm-sdk-go), the current code calls exit 1, which hard-fails the entire matrix job. This cascades into job failures and cancelled runs for all other repos in that batch.

Fix

Detect the "status":"404" in the error response and treat it as a graceful skip:

  • Log a ::warning:: so it's visible in the job output
  • exit 0 so the matrix job continues processing other repos

Applies to both generate-sbom.yml (main CNCF jobs) and reusable-generate-sbom.yml (subproject batch jobs), for both the releases and tags API calls.

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

Signed-off-by: Mario Fahlandt <mfahlandt@pixel-haufen.de>
@mfahlandt
mfahlandt merged commit 9705b53 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