Repository navigation
fix(ci): harden release workflow retries for network-sensitive steps - #350
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request improves the resiliency of the release pipeline by adding explicit retry behavior around SBOM generation, image signing, and attestations, reducing the chance of transient network/registry issues breaking releases.
Changes:
- Add a retry path for SBOM generation (with a short wait between attempts).
- Add retry logic around
cosign signto handle transient signing failures. - Add retries for build provenance and SBOM attestations, plus retries for the downstream smoke-test repository dispatch.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Hardens the release workflow against transient network failures that previously caused candidate publishing to fail during Sigstore/Rekor interactions. It adds retries for SBOM generation, cosign signing, provenance/SBOM attestations, and smoke-test repository dispatch, and migrates SBOM attestation from deprecated
actions/attest-sbomtoactions/attest.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
.github/workflows/release.yml3attempts,15sbackoff) aroundcosign signinpublishjobGenerate SBOMAttest build provenanceactions/attest-sbomwithactions/[email protected]and add retry pattern3attempts,10sbackoff) for smoke-testrepository_dispatchAPI callChangelog Entry
No changelog needed: this is an internal CI workflow reliability fix with no user-facing runtime behavior change.
Testing
just test)Manual Testing Details
git commitpath;check yaml,yamllint, and action pin checks passed..github/workflows/release.yml.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
23201577188, stepAttest SBOM, timeout while creating Rekor tlog entry.anchore/sbom-actionNode 20 deprecation warning remains out of scope for this issue and should be tracked separately.Refs: #347