fix: support repositories with immutable releases enabled#587
Open
fix: support repositories with immutable releases enabled#587
Conversation
GitHub's immutable releases feature (GA since Oct 2025) prevents modifying release artifacts after the release is created. This broke chart-releaser because it creates the release first, then uploads assets in a separate API call. This fix creates releases as drafts first, uploads assets, then publishes the release. Draft releases can be modified until they are published, which allows the asset upload to succeed. Fixes helm/chart-releaser-action#228 See: https://github.blog/changelog/2025-10-28-immutable-releases-are-now-generally-available/ Signed-off-by: Chris Burr <christopher.burr@cern.ch>
df6a459 to
de894ed
Compare
chrisburr
added a commit
to chrisburr/diracx-charts
that referenced
this pull request
Jan 19, 2026
GitHub's immutable releases feature (GA since Oct 2025) breaks the standard chart-releaser because it creates releases first, then uploads assets separately. With immutable releases, once the release is created, assets cannot be added. This workaround builds a patched chart-releaser from helm/chart-releaser#587 that creates releases as drafts first, uploads assets, then publishes the release. Relates to: helm/chart-releaser-action#228
chrisburr
added a commit
to chrisburr/diracx-charts
that referenced
this pull request
Jan 19, 2026
GitHub's immutable releases feature (GA since Oct 2025) breaks the standard chart-releaser because it creates releases first, then uploads assets separately. With immutable releases, once the release is created, assets cannot be added. This workaround builds a patched chart-releaser from helm/chart-releaser#587 that creates releases as drafts first, uploads assets, then publishes the release. Relates to: helm/chart-releaser-action#228
chrisburr
added a commit
to DIRACGrid/diracx-charts
that referenced
this pull request
Jan 19, 2026
* fix: workaround for immutable releases breaking chart-releaser GitHub's immutable releases feature (GA since Oct 2025) breaks the standard chart-releaser because it creates releases first, then uploads assets separately. With immutable releases, once the release is created, assets cannot be added. This workaround builds a patched chart-releaser from helm/chart-releaser#587 that creates releases as drafts first, uploads assets, then publishes the release. Relates to: helm/chart-releaser-action#228 * chore: bump chart version to 1.0.4
Author
|
Example deployment with this fix: https://github.com/DIRACGrid/diracx-charts/actions/runs/21141997362/job/60798114682 |
|
That looks good to me. |
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.
Summary
GitHub's immutable releases feature (GA since Oct 2025) prevents modifying release artifacts after the release is created. This broke chart-releaser because it creates the release first, then uploads assets in a separate API call.
This fix creates releases as drafts first, uploads assets, then publishes the release. Draft releases can be modified until they are published, which allows the asset upload to succeed.
Changes
CreateReleaseinpkg/github/github.goto:Draft: true)Draft: falseRelated Issues
References